Uses of Class
org.summerboot.jexpress.util.pdf.PDFBox.LayoutInfo
Packages that use PDFBox.LayoutInfo
-
Uses of PDFBox.LayoutInfo in org.summerboot.jexpress.util.pdf
Methods in org.summerboot.jexpress.util.pdf that return PDFBox.LayoutInfoModifier and TypeMethodDescriptionstatic PDFBox.LayoutInfoPDFBox.layoutThenGetInfo(String html, File baseDir) <html> <head> <style> @page { margin: 0px; size: ${pageWidth}mm 1mm; } </style> </head> </html> if (isSinglePage) { PDFBox.LayoutInfo layoutInfo = PDFBox.layoutThenGetInfo(html, baseDir); if (layoutInfo.getPageCount() > 1) { float pageHeightMillimeters = layoutInfo.getPageHeight() * layoutInfo.getPageCount() / PDFBox.POINTS_PER_MM + 5;//add extral space html = html.replaceFirst("1mm;", pageHeightMillimeters + "mm;"); } }