PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Jul 19, 2024 7:37 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: How to set header height
PostPosted: Fri Sep 03, 2010 11:47 am 
Offline

Joined: Tue Aug 31, 2010 11:25 am
Posts: 3
Pdfsharp /MigraDoc : How can we set header height of each page . can it be possible that different page has different header height

thanks
Arun


Top
 Profile  
Reply with quote  
PostPosted: Sat Sep 04, 2010 6:10 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 343
Header height is part of the page setup.

Every new section can have a new page setup with a different header height.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 13, 2010 1:04 pm 
Offline

Joined: Tue Aug 31, 2010 11:25 am
Posts: 3
() => true wrote:
Header height is part of the page setup.

Every new section can have a new page setup with a different header height.


Thanks for the reply!!!

This is how I am adding a header to my page.

Code:
Document document = new Document();
Section section = document.AddSection();
HeaderFooter header = section.Headers.FirstPage;


Please advise how to set the height of
Code:
header
in this case.

Thanks,
Arun Kumar.


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 13, 2010 2:19 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
Please check the properties of Document.LastSection.PageSetup.

The value set for TopMargin must be large enough to prevent overlapping of header and body - or your document must take care of that.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 39 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