We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to draw the header and footer outside the bounds of the margin?

You can draw the header and footer outside of the margin by using the following steps:

  1. Create a PDF with Margin(Margins.All=value).
  2. Save the document to the MemoryStream and load it via the PdfLoadedDocument.
  3. Convert the loaded document pages to templates.
  4. Create a new PdfDocument with margins set to zero.
  5. Draw the loaded pages template onto the new templates.
  6. Add the header and footer to the new document template.

Refer to the following code example to draw the header outside the margin.

C#

Sample Link:

http://www.syncfusion.com/downloads/support/directtrac/general/MarginSample-279672044.zip

Article ID: Published Date: Last Revised Date: Platform: Control:
3732 02/04/2015 02/04/2015 Windows Forms PDF
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.