Thomas Hoevel wrote:
Hi!
You could leave the header empty, render the document using MigraDoc - and finally draw the headers using PDFsharp.
At this stage you can access the render information from MigraDoc to determine which document elements are on which page.
You can use the Tag property of each element for that purpose.
Or maybe you can use TextFrames for that purpose. TextFrames can have an absolute position. Set the background to solid white - if several TextFrames overlap on one page, the last one should be visible.
Hi Thomas,
Thanks for the reply. Do you have any sample? I read the sample of combining the Migradoc & PDFSharp to generate a document, however, it seems like we have to put in the location by complicated calculation.
Do you have any sample of using the tag to draw the header with PDF Sharp? \
Thanks!