If I save the PDF and print it with Foxit, the document prints correctly.
This is my print code.
- Code: Select all
PDF_Report_Generator gen = new PDF_Report_Generator();
using (PdfDocument document = gen.Generate(report))
{
Log.Information("Printing {0}",report.serial);
document.PageScaling = PdfPrintPageScaling.ShrinkOversized;
document.PrintDocument.Print();
Log.Information("Printing Done");
}
What the document should look like, and what is actually printed are attached