pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1461796 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java
Date Wed, 27 Mar 2013 18:55:16 GMT
Author: lehmi
Date: Wed Mar 27 18:55:16 2013
New Revision: 1461796

URL: http://svn.apache.org/r1461796
Log:
PDFDBOX-1547: use cropBox instead of mediaBox when calculating text position

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java?rev=1461796&r1=1461795&r2=1461796&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java Wed Mar
27 18:55:16 2013
@@ -375,8 +375,8 @@ public class PDFStreamEngine
         textStateParameters.setValue(2,1, riseText);
 
         int pageRotation = page.findRotation();
-        float pageHeight = page.findMediaBox().getHeight();
-        float pageWidth = page.findMediaBox().getWidth();
+        float pageHeight = page.findCropBox().getHeight();
+        float pageWidth = page.findCropBox().getWidth();
 
         Matrix ctm = getGraphicsState().getCurrentTransformationMatrix();
         Matrix textXctm = new Matrix();



Mime
View raw message