PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Fri Aug 15, 2025 1:56 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Nov 16, 2012 12:27 am 
Offline

Joined: Fri Nov 16, 2012 12:15 am
Posts: 1
Hi - I'm using MigraDoc 1.32, and have successfully generated PDF output of reasonably long (20+ pgs) documents involving text, tables, and a table of contents with hyperlinks and page references. MigraDoc/PDFsharp are working well for me! :D

But: I recently added RTF generation using an RtfDocumentRenderer - all is well there EXCEPT my Table of Contents entries look like:
1 Overview ............................................. < Please update this field. >
They do not look like this in my PDF output - the "< Please update this field. >" portion contains a page number instead.

Any suggestions as to why this is happening in RTF and not PDF generation? Thanks!

---

Follow-up note: I was able to fix this in the generated output in MS Word by right-clicking on the the "Please update this field" field and selecting "Update Field". This supplied the proper page number within MS Word for me, but this was a manual follow-on step I had to perform.

I also noticed that the page numbers I had added to my page footers were not showing up in my RTF output, but were included in my PDF output for the same document. Again, any help to fix this or explanation as to why this is happening would help. Thanks!


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 19, 2012 9:35 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3135
Location: Cologne, Germany
With RTF files, Word makes the pagebreaks (for PDF, MigraDoc makes the pagebreaks). AFAIK you cannot get around Update Fields to show the page numbers (IIRC you have to hit Select All (Ctrl+A) and Update Fields (F9)).

Headers and footers should be in the RTF document. Again it's Word that will add the page numbers.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: Google Adsense [Bot] and 90 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