Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Printing a PDF Document |
Post Reply ![]() |
Author | ||
mburian ![]() Beginner ![]() ![]() Joined: 10 Jul 06 Location: Australia Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() 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")
|
||
Mick Burian
|
||
![]() |
||
ukobsa ![]() Senior Member ![]() Joined: 29 May 06 Location: Germany Status: Offline Points: 115 |
![]() ![]() ![]() ![]() ![]() |
|
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 |
||
![]() |
||
mburian ![]() Beginner ![]() ![]() Joined: 10 Jul 06 Location: Australia Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
|
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 Burian
|
||
![]() |
||
pschott ![]() Beginner ![]() Joined: 02 Nov 05 Location: Germany Status: Offline Points: 10 |
![]() ![]() ![]() ![]() ![]() |
|
Hi,
try RenderPageTo... after loading the pdf after this try PrintDocument. |
||
![]() |
||
mburian ![]() Beginner ![]() ![]() Joined: 10 Jul 06 Location: Australia Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
|
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
|
||
![]() |
||
chicks ![]() Debenu Quick PDF Library Expert ![]() Joined: 29 Oct 05 Location: United States Status: Offline Points: 251 |
![]() ![]() ![]() ![]() ![]() |
|
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. |
||
![]() |
||
mburian ![]() Beginner ![]() ![]() Joined: 10 Jul 06 Location: Australia Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
|
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
|
||
![]() |
||
pschott ![]() Beginner ![]() Joined: 02 Nov 05 Location: Germany Status: Offline Points: 10 |
![]() ![]() ![]() ![]() ![]() |
|
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. |
||
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store