Differences when printing pdf via ADOBE and ICEPDF
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Differences when printing pdf via ADOBE and ICEPDF  XML
Forum Index -> ICEpdf General
Author Message
dimap

Joined: 20/02/2011 14:55:42
Messages: 1
Offline


Hello,
I'm trying to print pdf (silent) using the API's.
I've found that there is a difference with the page size, when printing
through Adobe Acrobat Reader, and ICEPDF.
I've tried to change the page margins manually, through the printer dialog, and almost succeeded to match between the final printing size.
I'm interested in changing the page margins using API, but I didn't find
matching API's in your product.
I would appreciate your help, to get a final result of the printed page,
that would be the same as the printed page which is printed via Acrobat Reader.

Thanks in advance,
Dmitry
patrick.corless

Joined: 26/10/2004 00:00:00
Messages: 1150
Offline


Take a look at the ./examples/PrintSErvices.java, it's a good example of how to do silent printing. Like the Viewer RI this example also uses the PrintHelper class to manage printing. This class by default sets the page margin to zero so that the page can be painted with its default margin.


The margins are actually set using properties available in the Java Print Services API. ICEpdf paints to the graphics context provided by the paint print API. If you wanted to change the page size you can paint using a different zoom level.

The PrintHelper has a property printFitToMargin which might be useful as it will try and scale the page automatically to match the paper dimensions.
[Email]
 
Forum Index -> ICEpdf General
Go to:   
Powered by JForum 2.1.7ice © JForum Team