empira / PDFsharp

PDFsharp and MigraDoc Foundation for .NET 6 and .NET Framework
https://docs.pdfsharp.net/
Other
492 stars 114 forks source link

Unable to change the document page header margin #75

Closed wallid closed 8 months ago

wallid commented 8 months ago

Not sure this is the correct type or label. I've tried changing the header margin on a document but there isn't any setters for me. I was wondering if someone was able to change the margins on a header. I can do it on a section but not on the document header.

Thanks.

Resources

The official project web site:
https://docs.pdfsharp.net/

The official peer-to-peer support forum:
http://forum.pdfsharp.net/

Reporting an Issue Here

Expected Behavior

Actual Behavior

Steps to Reproduce the Behavior

We strongly recommend using the IssueSubmissionTemplate to make sure we can replicate the issue.
https://docs.pdfsharp.net/General/IssueReporting.html

TH-Soft commented 8 months ago

Not many details.

wallid commented 8 months ago

Not sure this is the correct type or label. I've tried changing the header margin on a document but there isn't any setters for me. I was wondering if someone was able to change the margins on a header. I can do it on a section but not on the document header.

Thanks.

TH-Soft commented 8 months ago

You can set the Header distance and the Top margin in the PageSetup. The PageSetup applies to all pages of a Section.