pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1643915 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java
Date Mon, 08 Dec 2014 20:55:15 GMT
Author: jahewson
Date: Mon Dec  8 20:55:15 2014
New Revision: 1643915

URL: http://svn.apache.org/r1643915
Log:
PDFBOX-2542: Removed check for Type of page tree root

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java?rev=1643915&r1=1643914&r2=1643915&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java Mon Dec  8
20:55:15 2014
@@ -61,10 +61,6 @@ public class PDPageTree implements COSOb
         {
             throw new IllegalArgumentException("root cannot be null");
         }
-        if (root.getCOSName(COSName.TYPE) != COSName.PAGES)
-        {
-            throw new IllegalArgumentException("root must be of type Pages");
-        }
         this.root = root;
     }
 



Mime
View raw message