View previous topic :: View next topic |
Author |
Message |
axelb
Joined: 22 Jan 2008 Posts: 2
|
Posted: Tue Jan 22, 2008 3:50 pm Post subject: Different leftmargin on header/footer and contenttable |
|
|
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 |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Tue Jan 22, 2008 4:09 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
axelb
Joined: 22 Jan 2008 Posts: 2
|
Posted: Wed Jan 23, 2008 1:40 pm Post subject: |
|
|
Thanks, it worked perfectly.. |
|
Back to top |
|
|
|