pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: PdfBox 2.0 scale to A4 while printing document
Date Sun, 28 Jun 2015 15:10:44 GMT
Am 28.06.2015 um 16:43 schrieb Александр Свиридов:
>   When I print pdf document it doesn't stretch to take normal A4 page area. I mean that
margins are too big and document is smaller then it could be and is located in center of the

Yes it is centered. What else would you expect? Adjusted to the bottom 

We'd need the PDF to find out what (if anything) is wrong.

Please try also printing it with Adobe Reader in 100% mode.


PS: don't CC user postings to me. I get then anyway.

> My code:
> PrinterJob job = PrinterJob.getPrinterJob();
> Paper paper=new Paper();
> paper.setSize(72d*8.267d, 72d*11.692);
> PDFPrinter pDFPrinter=new PDFPrinter(document,Scaling.SCALE_TO_FIT, Orientation.PORTRAIT,paper);
> pDFPrinter.silentPrint(job);
> Please help me to solve this problem.

To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org

View raw message