]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
This fixes A4 letter size printing from Jeremias Maerki.
authorSteve Coffman <gears@apache.org>
Tue, 14 Aug 2001 17:56:40 +0000 (17:56 +0000)
committerSteve Coffman <gears@apache.org>
Tue, 14 Aug 2001 17:56:40 +0000 (17:56 +0000)
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

index 3fa74f812a941167f837855cfcbbf5de2b9f542d..45ca0b4ba2a35941602b160e77900aa7456fd029 100644 (file)
@@ -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) {