Welcome Guest Search | Active Topics | Sign In | Register

Bookmark page Options
Brian
Posted: Tuesday, October 11, 2011 11:13:46 PM
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

eo_support
Posted: Wednesday, October 12, 2011 9:47:48 AM
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.aspx
http://doc.essentialobjects.com/library/4/eo.pdf.pdfbookmark.destination.aspx
http://doc.essentialobjects.com/library/4/eo.pdf.pdfdocument.bookmarks.aspx

Hope this helps.

Thanks
Brian
Posted: Wednesday, October 12, 2011 7:31:02 PM
Rank: Member
Groups: Member

Joined: 10/10/2011
Posts: 13
That worked great. Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.