When i print a PDF (attached) in real size from Acrobat, it fits correctly in the page (left picture attached).
When i print the same PDF with Spire.PDF library, the whole page is pulled up 0.5 cm to the top of the page (right picture attached).
All the content of the page has the good scale, it is only the whole position that is too high.
Here is the code i used :
var spire = new Spire.Pdf.PdfDocument();
spire.LoadFromFile(entete.Pdf, Spire.Pdf.FileFormat.PDF);
spire.PrintSettings.SelectSinglePageLayout(Spire.Pdf.Print.PdfSinglePageScalingMode.CustomScale, customScaling: 100);
document = string.Format(@"{0}\TempPRN\{1}.prn", Properties.Settings.Default.ExportPath, entete.Key);
spire.PrintSettings.PrinterName = printer.driver;
spire.PrintSettings.PrintToFile(document);
spire.Print();
I've tried to adjust the spire.PrintSettings.SetPaperMargins or several parameters of spire.PrintSettings.SelectSinglePageLayout but the result is always the same : the prints from adobe and from spire are not exactly the same.
Do you reproduce this problem or do I have to search a parameter in my printer or in my code to adjust the margins ?
Thanks