Posted by a ceTe Software moderator
Hello Dwight,
Yes, you can add only the bookmarks without tying them to the Outline without any problem using our DynamicPDF product. Below is the code for it.
Document document = new Document();
Page page1 = new Page(PageSize.LETTER);
Page page2 = new Page(PageSize.LETTER);
Page page3 = new Page(PageSize.LETTER);
page1.getElements().add( new Bookmark("Bookmark to page 1", 0, 0));
page2.getElements().add( new Bookmark("Bookmark to page 2", 0, 0));
page3.getElements().add( new Bookmark("Bookmark to page 3", 0, 0));
document.getPages().add(page1);
document.getPages().add(page2);
document.getPages().add(page3);
document.draw("Path to save the PDF document");
Thanks,
ceTe Software Support Team