Print Page | Close Window

Printing a PDF Document

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=460
Printed Date: 18 May 24 at 9:00PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Printing a PDF Document
Posted By: mburian
Subject: Printing a PDF Document
Date Posted: 10 Jul 06 at 3:34AM

Can anyone please help me with the following code?

I am just trying to print but get a blank page:

    Set QP = CreateObject("iSED.QuickPDF")
    Call QP.UnlockKey.....
 
    QP.LoadFromFile (inFilename)
    
    Call QP.PrintDocument(QP.GetDefaultPrinterName, 1, 1, QP.PrintOptions(0, 0, inFilename))

 



-------------
Mick Burian



Replies:
Posted By: ukobsa
Date Posted: 10 Jul 06 at 4:03AM
Any chance that it is an encrypted document? If so try to unencrypt it before printing.
(this way I can reproduce your described behaviour, otherwise your code snippet works for me)

best regards,
Ulrich


Posted By: mburian
Date Posted: 10 Jul 06 at 5:10AM

Hi. No the document is not encrypted.

The behaviour is that the printer starts and acknowledges 1 pages being sent to it but just ejects a blank page with no print.

Best Regards
Mick

 

 



-------------
Mick Burian


Posted By: pschott
Date Posted: 10 Jul 06 at 7:56AM
Hi,
try RenderPageTo... after loading the pdf
after this try PrintDocument.



Posted By: mburian
Date Posted: 10 Jul 06 at 6:28PM

Originally posted by pschott pschott wrote:

Hi,
try RenderPageTo... after loading the pdf
after this try PrintDocument.

Hi, Thanks for the reply, but I am not sure how to use the RenderTo in this example?  Can you give some more hints please?

 



-------------
Mick Burian


Posted By: chicks
Date Posted: 10 Jul 06 at 6:51PM
In Adobe Reader, Document Properties/Security, make sure Printing is Allowed.

Does the PDF have any images, especially TIF images? QuickPDF has "issues" with some images.


Posted By: mburian
Date Posted: 10 Jul 06 at 10:37PM

Originally posted by chicks chicks wrote:

In Adobe Reader, Document Properties/Security, make sure Printing is Allowed.

Does the PDF have any images, especially TIF images? QuickPDF has "issues" with some images.

Hi, This is a very basic document with no images that I can print using Adobe Reader.  It was also created using using iSEDQuickPDF

 



-------------
Mick Burian


Posted By: pschott
Date Posted: 11 Jul 06 at 2:22AM
Originally posted by mburian mburian wrote:

Originally posted by pschott pschott wrote:

Hi,
try RenderPageTo... after loading the pdf
after this try PrintDocument.


Hi, Thanks for the reply, but I am not sure how to use the RenderTo in this example? Can you give some more hints please?




Set QP = CreateObject("iSED.QuickPDF")
    Call QP.UnlockKey.....

    QP.LoadFromFile (inFilename)
    vDummy = QP.RenderPageToVariant(72,1,3)
    Call QP.PrintDocument(QP.GetDefaultPrinterName, 1, 1, QP.PrintOptions(0, 0, inFilename))


I, have some PDF's
thats only display correctly (RenderPageTo...) after the second call of RenderPageToStream (only Delphi, for dll RenderPageToString, for ActiveX RenderPageToVariant see Doku). Maybe you have the same problem.



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