Can only print first page of pdf file

Discussions about document printing in GdPicture.NET using GdPictureImaging.
Post Reply
phillip
Posts: 6
Joined: Wed Jul 01, 2009 5:06 pm

Can only print first page of pdf file

Post by phillip » Wed Jul 01, 2009 5:24 pm

Hello,

I am trying to print PDF documents. I can only seem to print the first page though.

I had thought that just sending to print would work but when that only printed the first page I tried calling DisplayNextPage and calling print again to see if I needed to send each page to the printer individually. That didn't work either though.

Is there something i need to do to print multiple pages from pdf files?

Also, I get a print message pop up when I click Print with a Cancel button... how do I get rid of that?

Thanks,

Phil Johnson

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Can only print first page of pdf file

Post by Loïc » Wed Jul 01, 2009 7:15 pm

Hi Phil,

When you print in silent mode (without using printing dialogs) you have to specify the page range to print using the PrintSetFromToPage() method.


Also, I get a print message pop up when I click Print with a Cancel button... how do I get rid of that?
What message pop up ?

Kind regards,

Loïc

phillip
Posts: 6
Joined: Wed Jul 01, 2009 5:06 pm

Re: Can only print first page of pdf file

Post by phillip » Mon Jul 20, 2009 10:23 am

Thanks Loic, the multiple page printing worked fine and I also found something in the documentation regarding the little dialog that comes up re sending to print and how to enable/disable it.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests