Welcome Guest Search | Active Topics | Sign In | Register

Table of Contents using EO.PDF Creator API Options
Des Owen
Posted: Friday, March 20, 2015 7:59:31 AM
Rank: Newbie
Groups: Member

Joined: 12/10/2010
Posts: 2
Hi

My large UK NHS Client wants to purchase several licences for EO.PDF for their team and I am helping them evaluate the tool using an older version that I own. The only thing I am stuck on is trying to generate a table of content directly from code using the Creator API. The entire PDF is created on the basis of a list of template items that my C# code uses to generate each content type such as headings, text blocks, graphs, images etc.

I have looked through the rendered document objects to give me page numbers but I can't find my AcmParagraph objects within the rendered document. I can find them of course before the contents are rendered to the top level contents block.

Is it possible to create a TOC?

Des Owen
eo_support
Posted: Friday, March 20, 2015 12:28:19 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

You can use this method on your original AcmContent object to get a PdfDestination object:

http://www.essentialobjects.com/doc/4/eo.pdf.acm.acmcontent.createdestination.aspx

You can then use property on the PdfDestination object to get the page index.

Note that you can only use it after the content has been rendered.

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.