PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Migrdoc, inserting page in a specific position https://forum.pdfsharp.net/viewtopic.php?f=2&t=1626 |
Page 1 of 1 |
Author: | igrowstuff [ Wed Apr 20, 2011 9:00 am ] |
Post subject: | Migrdoc, inserting page in a specific position |
Hello there, Using Migradoc is it possible to insert a document section into a document at a position of my choosing? For example I have a PDF report that I wish to create a table of contents for, the only problem is that I do not know what the content of the report will be until after I have generated it. I was therefore wondering if I could create a table of contents and insert it at the front of the document after having created all the document sections? Any help and advise is greatly appreciated. |
Author: | Thomas Hoevel [ Wed Apr 20, 2011 10:22 am ] |
Post subject: | Re: Migrdoc, inserting page in a specific position |
Hi! Add a section for the Table of Contents (TOC) and leave it empty (but store the object). Add another section for the contents. Then add the contents to it. You can add the references to the TOC after adding the contents. Add bookmarks to the contents that can be referenced by the TOC. |
Author: | igrowstuff [ Wed Apr 20, 2011 11:40 am ] |
Post subject: | Re: Migrdoc, inserting page in a specific position |
Thanks for the advice, thats fantastic. Shall I just store the TOC as a section object and then add content to it afterwards? Does anyone have any examples of code that allows this? Many Thanks |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |