pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1737261 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/CCITTFactory.java
Date Thu, 31 Mar 2016 17:17:37 GMT
Author: tilman
Date: Thu Mar 31 17:17:37 2016
New Revision: 1737261

URL: http://svn.apache.org/viewvc?rev=1737261&view=rev
Log:
PDFBOX-3299: TIFF-files with FillOrder=2 can't be converted to PDF

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/CCITTFactory.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/CCITTFactory.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/CCITTFactory.java?rev=1737261&r1=1737260&r2=1737261&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/CCITTFactory.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/CCITTFactory.java
Thu Mar 31 17:17:37 2016
@@ -282,6 +282,14 @@ public final class CCITTFactory
                         }
                         break;
                     }
+                    case 266:
+                    {
+                        if (val != 1)
+                        {
+                            throw new IOException("FillOrder " + val + " is not supported");
+                        }
+                        break;
+                    }
                     case 273:
                     {
                         if (count == 1)



Mime
View raw message