You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2015/10/31 12:40:25 UTC

svn commit: r1711602 - /pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentInformation.java

Author: tilman
Date: Sat Oct 31 11:40:25 2015
New Revision: 1711602

URL: http://svn.apache.org/viewvc?rev=1711602&view=rev
Log:
PDFBOX-3068: add test

Modified:
    pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentInformation.java

Modified: pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentInformation.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentInformation.java?rev=1711602&r1=1711601&r2=1711602&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentInformation.java (original)
+++ pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentInformation.java Sat Oct 31 11:40:25 2015
@@ -66,4 +66,17 @@ public class TestPDDocumentInformation e
             }
         }
     }
+    
+    /**
+     * PDFBOX-3068: test that indirect /Title element of /Info entry can be found with nonSeq parser.
+     * 
+     * @throws Exception 
+     */
+    public void testPDFBox3068() throws Exception
+    {
+        PDDocument doc = PDDocument.loadNonSeq(TestPDDocumentInformation.class.getResourceAsStream("PDFBOX-3068.pdf"), null);
+        PDDocumentInformation documentInformation = doc.getDocumentInformation();
+        assertEquals("Title", documentInformation.getTitle());
+        doc.close();
+    }
 }