pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1711602 - /pdfbox/branches/1.8/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocumentInformation.java
Date Sat, 31 Oct 2015 11:40:25 GMT
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();
+    }
 }



Mime
View raw message