PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Apr 28, 2024 1:26 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Aug 13, 2014 4:18 pm 
Offline

Joined: Wed Aug 06, 2014 3:39 pm
Posts: 4
I had a document that is formatted by using Heading 1, 2, 3, etc. Is there a way to make Migradoc auto-generate a Table of Contents based on these headings? Essentially, the heading style defines the outline level. I've looked at the HelloMigradoc sample and it doesn't show anything like this. Please advise.

Thanks!


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 14, 2014 8:00 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
AFAIK there is no routine that creates a TOC automatically.

OTOH it shouldn't be difficult to go through all paragraphs in the document and create a TOC as you need it.

In our application we use a routine to create the TOC. The TOC contains a subset of the outlines. I presume for large documents it's often better not to have all headings in the TOC.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Fri Aug 22, 2014 6:32 pm 
Offline

Joined: Wed Aug 06, 2014 3:39 pm
Posts: 4
After a pretty thorough review of what we're using the application for, it absolutely would be useful if I could first build a pdf using Migradoc, then run a CreateToC() function on it and have it automatically generate a ToC based on headings used. In my situation the users enter text through a number of TinyMCE forms. They'd like to be able to do something in their TinyMCE form which would result in a ToC entry being added.

I'm sure I can come up with a workaround, but maybe you'll consider something similar as you continue to develop MigraDoc.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 306 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group