From da2214bf4c38d70678f007e546636f78624d5aaa Mon Sep 17 00:00:00 2001 From: Steve Coffman Date: Tue, 14 Aug 2001 17:56:40 +0000 Subject: [PATCH] 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 --- src/org/apache/fop/render/pdf/PDFRenderer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) { -- 2.39.5