Воскресенье, 28 июня 2015, 17:10 +02:00 от Tilman Hausherr <[email protected]>: >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 page. > >Yes it is centered. What else would you expect? Adjusted to the bottom >right? I don't understand you. Really. Of course I expect it to be centered. >And it is centered as it's expected. However, If everything were as expected I >wouldn't right to mailing list, would I? I always thought that information for fixing some bug is a starting point. That's why I provided this information. > >We'd need the PDF to find out what (if anything) is wrong I do all files using >Libre Office. I tried different files and even very simple ones. So just take >any file and you must get the same results. > > >Please try also printing it with Adobe Reader in 100% mode. I printed my pdf >file with Adobe Reader in mode 100%. And as expected left and right margins >are about 2cm. In comparison when I print using pdfbox left margin is 4.5cm, >right about 3.5cm. > >Tilman > >PS: don't CC user postings to me. I get then anyway. Really sorry for this. I >can't understand why my mailing service added your address and I didn't notice >it.
So the problem is still there. How to fix it? > >> >> 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: [email protected] >For additional commands, e-mail: [email protected] >

