PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Apr 19, 2024 8:21 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: Sat Aug 11, 2007 11:42 am 
Offline

Joined: Mon Aug 06, 2007 10:55 am
Posts: 1
Hi Everybody,
I made a Invoice with MigraDoc Lite, but on the pages after the first one the header is in the background of the table.
I tried allready to set the TopMargin of the Page without success =(
Because it worked for the following pages, but on the first page the distance from the content to the top of the page is 2times longer.

I hope someone can help me =)

Heres the Doc with no topmargin: http://ae-webmedia.de/uploads/test1.pdf

Sry for my bad english, im german =)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Sep 19, 2007 10:11 am 
Offline

Joined: Wed Sep 19, 2007 10:06 am
Posts: 1
Hi !
I have exact the same problem.
I'm using a tabel for the adress to get it more nicer, and it writes over the header.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Sep 19, 2007 10:31 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
Hi!

Could be a bug or a feature.
If the header is 3 cm high and starts 1.5 cm from the page border, then you'll need a topmargin of at least 4.5 cm to avoid overlapping.

The PDF file doesn't help a lot here!
An MDDDL file would be more helpful here.
You can create it like this (from your MigraDoc Document "document"):
Code:
#if DEBUG
      string strDirectory = Path.GetDirectoryName(pdfFilename);
      DdlWriter dw = new DdlWriter(Path.Combine(strDirectory, @"samplepdf.mdddl"));
      dw.WriteDocument(document);
      dw.Close();
#endif

You can check that MDDDL file yourself to see if it contains the page margins you set.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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: TH-Soft and 247 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