|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
avoid oversized pagesAcrobat 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. Thanks, Maarten ------------------------------------------------------- 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 iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions |
|
|
Re: avoid oversized pagesmaarten 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 iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions |
|
|
|
|
|
|
|
|
Re: avoid oversized pagesAt 06:50 AM 8/10/2005, bruno wrote:
>> I would like to create an A4 document that does NOT NEED scaling, >> in other words: I would like that checking the option in the >> print dialog on or off doesn't make a difference. That doesn't make any sense... As Bruno noted, if your document is A4 and you print to A4 paper - then there won't be any scaling necessary (assuming the printer has minimal hardware margins). But, as you might expect, if you print that to a US printer - it will. >Of course you are dependent on your printer driver. >That driver can be the cause of your problem. Another excellent point. Leonard --------------------------------------------------------------------------- Leonard Rosenthol <mailto:leonardr@...> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-938-7080 (voice) 215-938-0880 (fax) ------------------------------------------------------- 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 iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions |
|
|
|
|
|
Re: avoid oversized pagesAt 09:05 AM 8/10/2005, bruno wrote:
>Normally no: if the printscaling option is set to NONE internally, >Adobe Reader should 'obey' it, BUT: the print scaling option >is rather recent (PDF 1.5? I only have my 1.4 Reference Manual >here, I left my 1.6 Manual at home), so older Readers may ignore it. It's new to 1.6 (Acrobat 7). >>Printing >>http://itextdocs.lowagie.com/tutorial/objects/bookmarks/NoScaling.pd >>f on a sheet of paper with size A4 >>with (option "No scaling") gives the following results : >>* from linux on OKI with PCL5c driver => A6 size in upper >>left corner of A4 page >>* from linux on OKI with PCL5e driver => A6 size in upper >>left corner of A4 page >>* from linux on OKI with Postscript driver => A6 size in upper >>left corner of A4 page >>* from linux on HP OKI with Postscript driver => A6 size in upper >>left corner of A4 page OK - that sounds correct. It didn't scale and the printer driver choose to place it in the upper left. >>* from Windows on OKI with OKI driver => A6 size centered on A4 >>page (after canceling error message on printer) >>* from Windows on HP with PS driver => A6 size centered on A4 page You probably have the "Auto-Rotate & Center" option enabled (it is by default). And again, it isn't scaling... So this all looks good... Leonard --------------------------------------------------------------------------- Leonard Rosenthol <mailto:leonardr@...> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-938-7080 (voice) 215-938-0880 (fax) ------------------------------------------------------- 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 iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions |
|
|
Re: avoid oversized pagesLeonard Rosenthol wrote:
> At 06:50 AM 8/10/2005, bruno wrote: > >>> I would like to create an A4 document that does NOT NEED scaling, >>> in other words: I would like that checking the option in the print >>> dialog on or off doesn't make a difference. >> > > That doesn't make any sense... > > As Bruno noted, if your document is A4 and you print to A4 > paper - then there won't be any scaling necessary (assuming the > printer has minimal hardware margins). I know, that's exactly what I expected: creating a A4 document and printing it to an A4 paper : no need to scale but unfortunately reality is different. > > But, as you might expect, if you print that to a US printer - > it will. I am definitely printing to A4 paper > > >> Of course you are dependent on your printer driver. >> That driver can be the cause of your problem. > > > Another excellent point. > Yes, I agree, but I tried it with 2 different printers with many different drivers (from both linux and unix) I am starting to suspect that our printerserver/spooler has something to do with it. Tonight I will try it out on my personal inkjet printer (directly connected to my pc). regards, Maarten ------------------------------------------------------- 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 iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions |
|
|
Re: avoid oversized pagesLeonard Rosenthol wrote:
> At 09:05 AM 8/10/2005, bruno wrote: > >> Normally no: if the printscaling option is set to NONE internally, >> Adobe Reader should 'obey' it, BUT: the print scaling option >> is rather recent (PDF 1.5? I only have my 1.4 Reference Manual >> here, I left my 1.6 Manual at home), so older Readers may ignore it. > > > It's new to 1.6 (Acrobat 7). > on Windows, but not in Acrobat 7 on linux. > >>> Printing >>> http://itextdocs.lowagie.com/tutorial/objects/bookmarks/NoScaling.pd >>> f on a sheet of paper with size A4 >>> with (option "No scaling") gives the following results : >>> * from linux on OKI with PCL5c driver => A6 size in upper >>> left corner of A4 page >>> * from linux on OKI with PCL5e driver => A6 size in upper >>> left corner of A4 page >>> * from linux on OKI with Postscript driver => A6 size in upper >>> left corner of A4 page >>> * from linux on HP OKI with Postscript driver => A6 size in upper >>> left corner of A4 page >> > > OK - that sounds correct. It didn't scale and the printer > driver choose to place it in the upper left. > (after canceling error message on printer) >>> * from Windows on HP with PS driver => A6 size centered on A4 >>> page >> > > You probably have the "Auto-Rotate & Center" option enabled > (it is by default). And again, it isn't scaling... > > So this all looks good... > Indeed, this looks good, I just wanted to point out to Bruno that doesn't always print in the center although I always had the "Auto-Rotate & Center" option enabled. ------------------------------------------------------- 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 iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions |
|
|
Re: avoid oversized pagesbruno wrote:
> The idea is to keep on the mailing list ;-) oops, sorry >> If I want to print >> http://itextdocs.lowagie.com/tutorial/general/HelloWorld.pdf >> and set the Page scaling option to "Fit to page", the preview on the >> right shows "Zoom: 91%" >> >> Is this different on your system/printers ? > > > Not really. > In my case, setting the Page Scaling to 'Fit to printer margins' shows > a zoom of 96%. > As you are talking about "Fit to page", I wonder: what Adobe Reader > version are you using? > br, > Bruno > a) Acrobat Standard 6.0 on Windows : None, Fit to paper, Shrink large pages, Tile large pages, Tile all pages b) Acrobat Reader 6.0 on Windows : None, Fit to paper, Shrink large pages c) Acrobat 7.0 on Windows: None, Fit to printer margins, Reduce to printer margins, Multiple pages per sheet d) Acrobat 7.0 on Linux : two checkboxes : Shrink oversized pages to paper size + Expand small pages to paper size Also on linux there is no preview box and no indication on how much zooming will be performed. Maarten ------------------------------------------------------- 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 iText-questions@... https://lists.sourceforge.net/lists/listinfo/itext-questions |
|
|
Re: avoid oversized pagesHow can I disbale Auto-Rotate and Center?
|
| Free embeddable forum powered by Nabble | Forum Help |