Rank: Member Groups: Member
Joined: 10/10/2011 Posts: 13
|
I'm grabbing text from multiple URLs and merging them together. Between each URL section I'm also merging a section heading page which I would like to set a bookmark for. How do I do that?
Sample:
Cover page Merge in section1cover.pdf <-- I want a bookmark for this Section 1 from URL Merge in section2cover.pdf <-- I want a bookmark for this Section 2 from URL Merge in section3cover.pdf <-- I want a bookmark for this Section 3 from URL Merge in section4cover.pdf <-- I want a bookmark for this Section 4 from URL
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, You can follow these steps: 1. Create a PdfDestination object pointing to your page; 2. Create a PdfBookmark object and set the PdfBookmark object's Destination to the PdfDestination object; 3. Add the PdfBookmark object to your PdfDocument's Bookmarks collection; Related reference: http://doc.essentialobjects.com/library/4/eo.pdf.pdfdestinationconstructor2.aspxhttp://doc.essentialobjects.com/library/4/eo.pdf.pdfbookmark.destination.aspxhttp://doc.essentialobjects.com/library/4/eo.pdf.pdfdocument.bookmarks.aspxHope this helps. Thanks
|
Rank: Member Groups: Member
Joined: 10/10/2011 Posts: 13
|
That worked great. Thanks!
|