Print Page | Close Window

Preview PDF File before Save

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1978
Printed Date: 05 Apr 26 at 4:24AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Preview PDF File before Save
Posted By: MoneyRan
Subject: Preview PDF File before Save
Date Posted: 29 Sep 11 at 5:31PM
  I have been using QuickPdf for a couple of months now and it's been helping out great. I just wondered if, after I use Drawtext function on a new or existing PDF file, I can preview what the changes look like before I save the new file?
 
  For example:
 
    Qp.drawText(..)
 
    Preview file
 
   if preview is ok
       QP.SaveToFile(..)
   else
       don't save
   end if



Replies:
Posted By: Ingo
Date Posted: 01 Oct 11 at 7:18PM
Hi!

There are better methods to do it but
what about saving to a work-file and do the preview with this file?
Here in the samples section there is relevant code.

Cheers, Ingo



Posted By: AndrewC
Date Posted: 03 Oct 11 at 5:21AM
You can call the QP.RenderPageToFile() and then display the rendered image file onto the screen.  Another option is RenderPageToDC().

Ingo's idea would also work.

Andrew.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk