Author: msahyoun
Date: Wed Apr  4 12:55:59 2018
New Revision: 1828334

URL: http://svn.apache.org/viewvc?rev=1828334&view=rev
Log:
PDFBOX-4071: debug output for failing TIFF loading and assumption to use PNG

Modified:
    
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java

Modified: 
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java
URL: 
http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java?rev=1828334&r1=1828333&r2=1828334&view=diff
==============================================================================
--- 
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java
 (original)
+++ 
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java
 Wed Apr  4 12:55:59 2018
@@ -298,6 +298,7 @@ public final class PDImageXObject extend
             }
             catch (IOException ex)
             {
+                LOG.debug("Reading as TIFF failed, setting fileType to PNG", 
ex);
                 // Plan B: try reading with ImageIO
                 // common exception:
                 // First image in tiff is not CCITT T4 or T6 compressed
@@ -356,6 +357,7 @@ public final class PDImageXObject extend
             }
             catch (IOException ex)
             {
+                LOG.debug("Reading as TIFF failed, setting fileType to PNG", 
ex);
                 // Plan B: try reading with ImageIO
                 // common exception:
                 // First image in tiff is not CCITT T4 or T6 compressed


Reply via email to