pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From le...@apache.org
Subject svn commit: r1000533 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentCatalog.java
Date Thu, 23 Sep 2010 16:41:27 GMT
Author: lehmi
Date: Thu Sep 23 16:41:27 2010
New Revision: 1000533

URL: http://svn.apache.org/viewvc?rev=1000533&view=rev
Log:
PDFBOX-839: use a COSName constant instead of a COSString to define the type of a PDDocumentCatalog

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentCatalog.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentCatalog.java?rev=1000533&r1=1000532&r2=1000533&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentCatalog.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocumentCatalog.java Thu
Sep 23 16:41:27 2010
@@ -25,7 +25,6 @@ import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSDictionary;
 import org.apache.pdfbox.cos.COSName;
 import org.apache.pdfbox.cos.COSStream;
-import org.apache.pdfbox.cos.COSString;
 
 import org.apache.pdfbox.pdmodel.common.COSArrayList;
 import org.apache.pdfbox.pdmodel.common.COSObjectable;
@@ -121,7 +120,7 @@ public class PDDocumentCatalog implement
     {
         document = doc;
         root = new COSDictionary();
-        root.setItem( COSName.TYPE, new COSString( "Catalog" ) );
+        root.setItem( COSName.TYPE, COSName.CATALOG );
         document.getDocument().getTrailer().setItem( COSName.ROOT, root );
     }
 



Mime
View raw message