I am currently evaluating the Aspose.Pdf library for printing pdf documents with printersettings.
It works perfect except for setting right and bottom margins in the PageSettings if at the same time viewer.AutoResize is set to false. In this case the settings for right and bottom margins are completely ignored when printing. Settings for left and top margins are instead taken into account when printing.
This is the example code where the margin settings are ignored:
PrinterSettings settings = GetPrinterSettings();
PdfViewer viewer = new PdfViewer();
viewer.AutoResize = false;
// set example margins
settings.DefaultPageSettings.Margins.Right = 20;
settings.DefaultPageSettings.Margins.Bottom = 20;
Is there a solution to this problem or is it a bug in library?