From: Steve Coffman Date: Tue, 14 Aug 2001 17:56:40 +0000 (+0000) Subject: This fixes A4 letter size printing from Jeremias Maerki. X-Git-Tag: fop-0_20_3~94 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=da2214bf4c38d70678f007e546636f78624d5aaa;p=xmlgraphics-fop.git This fixes A4 letter size printing from Jeremias Maerki. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194424 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/render/pdf/PDFRenderer.java b/src/org/apache/fop/render/pdf/PDFRenderer.java index 3fa74f812..45ca0b4ba 100644 --- a/src/org/apache/fop/render/pdf/PDFRenderer.java +++ b/src/org/apache/fop/render/pdf/PDFRenderer.java @@ -736,11 +736,13 @@ public class PDFRenderer extends PrintRenderer { } closeText(); + float w = page.getWidth(); + float h = page.getHeight(); currentStream.add("ET\n"); currentPage = this.pdfDoc.makePage(this.pdfResources, currentStream, - page.getWidth() / 1000, - page.getHeight() / 1000, page); + Math.round(w / 1000), + Math.round(h / 1000), page); if (page.hasLinks() || currentAnnotList != null) { if(currentAnnotList == null) {