diff options
author | Steve Coffman <gears@apache.org> | 2001-08-14 17:56:40 +0000 |
---|---|---|
committer | Steve Coffman <gears@apache.org> | 2001-08-14 17:56:40 +0000 |
commit | da2214bf4c38d70678f007e546636f78624d5aaa (patch) | |
tree | a27da7941e2f12f8e171e88ce4d73abf6e4603cb | |
parent | b269a5cca4b6b588dae41d54a29a231c37e9624f (diff) | |
download | xmlgraphics-fop-da2214bf4c38d70678f007e546636f78624d5aaa.tar.gz xmlgraphics-fop-da2214bf4c38d70678f007e546636f78624d5aaa.zip |
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
-rw-r--r-- | src/org/apache/fop/render/pdf/PDFRenderer.java | 6 |
1 files 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) { |