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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Printing a PDF Document
  FAQ FAQ  Forum Search   Register Register  Login Login

Printing a PDF Document

 Post Reply Post Reply
Author
Message
mburian View Drop Down
Beginner
Beginner
Avatar

Joined: 10 Jul 06
Location: Australia
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mburian Quote  Post ReplyReply Direct Link To This Post Topic: Printing a PDF Document
    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
Back to Top
ukobsa View Drop Down
Senior Member
Senior Member


Joined: 29 May 06
Location: Germany
Status: Offline
Points: 115
Post Options Post Options   Thanks (0) Thanks(0)   Quote ukobsa Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mburian View Drop Down
Beginner
Beginner
Avatar

Joined: 10 Jul 06
Location: Australia
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mburian Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
pschott View Drop Down
Beginner
Beginner


Joined: 02 Nov 05
Location: Germany
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote pschott Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jul 06 at 7:56AM
Hi,
try RenderPageTo... after loading the pdf
after this try PrintDocument.

Back to Top
mburian View Drop Down
Beginner
Beginner
Avatar

Joined: 10 Jul 06
Location: Australia
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mburian Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
chicks View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert


Joined: 29 Oct 05
Location: United States
Status: Offline
Points: 251
Post Options Post Options   Thanks (0) Thanks(0)   Quote chicks Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
mburian View Drop Down
Beginner
Beginner
Avatar

Joined: 10 Jul 06
Location: Australia
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote mburian Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
pschott View Drop Down
Beginner
Beginner


Joined: 02 Nov 05
Location: Germany
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote pschott Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store