pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maruan Sahyoun <sahy...@fileaffairs.de>
Subject Re: About bookmarks
Date Fri, 25 Jul 2014 06:51:09 GMT
Hi,

you would create and add subsubHeading the same way you created subHeading

PDOutlineItem heading = new PDOutlineItem();
heading.setTitle( "Heading" );
                
PDOutlineItem subHeading = new PDOutlineItem();
subHeading.setTitle( "Sub Heading");
                
PDOutlineItem subsubHeading = new PDOutlineItem();
subsubHeading.setTitle( "Sub Sub Heading");
                
subHeading.appendChild(subsubHeading);
                
heading.appendChild( subHeading );


Take a look at http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateBookmarks.java?view=co
for a more complete example.


BR
Maruan

Am 25.07.2014 um 07:21 schrieb Juho Terrijärvi <j.terrijarvi@gmail.com>:

> Hey,
> 
> Could someone please help me about one problem I have. I'm trying to create bookmarks:
> 
> Heading
>    - subHeading
>        - subsubHeading
> 
> But I do not find a way for the subsubHeading.
> 
> I would really appreciate the help.
> 
> Best regards,
> 
> Juho


Mime
View raw message