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.