You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by le...@apache.org on 2013/11/17 18:02:03 UTC

svn commit: r1542762 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java

Author: lehmi
Date: Sun Nov 17 17:02:03 2013
New Revision: 1542762

URL: http://svn.apache.org/r1542762
Log:
PDFBOX-1730: use the correct image type as default value

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java?rev=1542762&r1=1542761&r2=1542762&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java Sun Nov 17 17:02:03 2013
@@ -729,7 +729,7 @@ public class PDPage implements COSObject
         //the default size is not really good resolution,
         //so create an image that is twice the size
         //and let the client scale it down.
-        return convertToImage(8, 2 * DEFAULT_USER_SPACE_UNIT_DPI);
+        return convertToImage(BufferedImage.TYPE_INT_RGB, 2 * DEFAULT_USER_SPACE_UNIT_DPI);
     }
 
     /**