pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1659415 - /pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateBookmarks.java
Date Thu, 12 Feb 2015 21:39:47 GMT
Author: tilman
Date: Thu Feb 12 21:39:46 2015
New Revision: 1659415

URL: http://svn.apache.org/r1659415
Log:
PDFBOX-2677: use outline API change, by Andrea Vacondio

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

Modified: pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateBookmarks.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateBookmarks.java?rev=1659415&r1=1659414&r2=1659415&view=diff
==============================================================================
--- pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateBookmarks.java
(original)
+++ pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateBookmarks.java
Thu Feb 12 21:39:46 2015
@@ -67,7 +67,7 @@ public class CreateBookmarks
                 document.getDocumentCatalog().setDocumentOutline( outline );
                 PDOutlineItem pagesOutline = new PDOutlineItem();
                 pagesOutline.setTitle( "All Pages" );
-                outline.appendChild( pagesOutline );
+                outline.addLast( pagesOutline );
                 int pageNum = 0;
                 for( PDPage page : document.getPages() )
                 {
@@ -77,7 +77,7 @@ public class CreateBookmarks
                     PDOutlineItem bookmark = new PDOutlineItem();
                     bookmark.setDestination( dest );
                     bookmark.setTitle( "Page " + pageNum );
-                    pagesOutline.appendChild( bookmark );
+                    pagesOutline.addLast( bookmark );
                 }
                 pagesOutline.openNode();
                 outline.openNode();



Mime
View raw message