Blank header

when I print the file to a printer, an additional 1.5cm of blank header appears

Hi Ziv,

Thanks for your inquiry. You can reduce page margin values by using the following code:

Document doc = new Document(MyDir + @"A4EEF185-0FFA-49FB-B33A-522B42B231AE1.html");
doc.FirstSection.PageSetup.TopMargin = 5;
doc.FirstSection.PageSetup.BottomMargin = 5;
doc.FirstSection.PageSetup.LeftMargin = 5;
doc.FirstSection.PageSetup.RightMargin= 5;
doc.Print();

I hope, this helps.

Best regards,