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
|
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.aspxYou 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!
|