Based on RT-35892
When creating PageLayout:
PageLayout pl = prn.createPageLayout(pa.getDefaultPaper(), PageOrientation.PORTRAIT, 6,6,6,6);
On Linux will still be shown that the size of a border 54
Example (TestPrinting.java, line 55)
info(" Printable size: "+pl.getPrintableWidth()+"x"+pl.getPrintableHeight()+", border: "+pl.getLeftMargin()+","+pl.getTopMargin()+","+pl.getRightMargin()+","+pl.getBottomMargin());
Linux:
Printable size: 390.0x599.0, border: 54.0,54.0,54.0,54.0
Windows
Printable size: 627.0x3364.39370727539, border: 6.0,6.0,6.0,1397.6062927246098
I would like to understand what it depends
Project, printer driver, ppd and cups admin screenshot:
https://drive.google.com/folderview?id=0Bz7309sTKJ2nWFJpc0Z2RXF5aEU&usp=sharing
When creating PageLayout:
PageLayout pl = prn.createPageLayout(pa.getDefaultPaper(), PageOrientation.PORTRAIT, 6,6,6,6);
On Linux will still be shown that the size of a border 54
Example (TestPrinting.java, line 55)
info(" Printable size: "+pl.getPrintableWidth()+"x"+pl.getPrintableHeight()+", border: "+pl.getLeftMargin()+","+pl.getTopMargin()+","+pl.getRightMargin()+","+pl.getBottomMargin());
Linux:
Printable size: 390.0x599.0, border: 54.0,54.0,54.0,54.0
Windows
Printable size: 627.0x3364.39370727539, border: 6.0,6.0,6.0,1397.6062927246098
I would like to understand what it depends
Project, printer driver, ppd and cups admin screenshot:
https://drive.google.com/folderview?id=0Bz7309sTKJ2nWFJpc0Z2RXF5aEU&usp=sharing
- duplicates
-
JDK-8095324 [Printing] Cups - incorrect paper size
- Resolved
-
JDK-8094382 [Printing] JavaFx & Cups problems
- Closed