PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Apr 25, 2024 5:47 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Jan 22, 2008 3:50 pm 
Offline

Joined: Tue Jan 22, 2008 3:08 pm
Posts: 2
Hi,

I have just started using PdfSHarp and Migradoc and it seems like a good pdfcreator but I run into a problem.

I have created a MigraDoc document (A4) and I want to have a image in the header which should go all the way from the left margin to the right (width 21 cm).

It works if I set:
Code:
            section.PageSetup.LeftMargin = "0cm";
            section.PageSetup.HeaderDistance = "0cm";


and add a image to the header.

But when I want to add content like paragraphs, tables etc they all also have leftmargin set to 0.

The paragraphs I can indent with leftindent but how can I set the leftmargin or leftindent on the table?

Is it possible the set different leftmargin on the header and the rest of the content?

Best regards,
Axel, Sweden


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Jan 22, 2008 4:09 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
You can use a TextFrame object (in Header, Footer, or the main area) if you want to draw anything outside the margins of the page. Use alignments like "RelativeHorizontal.Page" to set the position relative to the edges of the page.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Jan 23, 2008 1:40 pm 
Offline

Joined: Tue Jan 22, 2008 3:08 pm
Posts: 2
Thanks, it worked perfectly..


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 273 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