Legacy notice!

iText 5 is the previous major version of iText's leading PDF SDK. iText 5 has been EOL, and is no longer developed. Switch your project to iText 7, integrating the latest developments.
Check related iText 7 content!

The Chapter and Section objects are being abandoned. They don't have any added value. Creating of bookmarks is done using the PdfOutline object.