maarten wrote:

Acrobat Reader has the option to "shrink oversized pages to paper size" (on Windows it's called "Fit to paper" or "Shrink large pages").
How can I create pdf documents that do not need shrinking ?
Depending on the chosen printer, the document will be scaled to 96% or 94%.

I am adding a barcode in the lower right corner of the page using image.setAbsolutePosition(x,y) Everything is ok when I check "fit to paper", but with option turned off the barcode is only partially printed.

I guess it has something to do with the printer's margins ?
Even if I create a document with only a newline or a single letter, Acrobat wants to shrink it.

Adding a line to set the viewer preferences like this:
PdfWriter writer = PdfWriter.getInstance(doc, os);
writer.setViewerPreferences(PdfWriter.printScalingNone);
will tell Adobe Reader the document shouldn't be 'fit to paper'.

met vriendelijke groet,
Bruno


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to