PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
How to Modify Header Information in Every page https://forum.pdfsharp.net/viewtopic.php?f=2&t=2970 |
Page 1 of 1 |
Author: | centravanti [ Mon Nov 03, 2014 7:15 am ] |
Post subject: | How to Modify Header Information in Every page |
Hello, I have a requirement that some headers in some pages might need to change. However, It looks like i couldn't do it using render info, cause the header's document object are the same for every page. Anybody has any idea to do this? Thanks |
Author: | Thomas Hoevel [ Tue Nov 18, 2014 3:38 pm ] |
Post subject: | Re: How to Modify Header Information in Every page |
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. |
Author: | centravanti [ Fri Jan 09, 2015 7:06 am ] |
Post subject: | Re: How to Modify Header Information in Every page |
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! |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |