Page 1 of 1

Fit to page difference after updating to new version

Posted: Fri Feb 06, 2026 1:20 pm
by r.bianco
I updated the dlls from 2024.2 to 2026.1.2 and noticed the PDF rendering is not fitting to printable area anymore.
I use report.ExportDocument(Pdf, path/to/file.pdf, settings);
The settings are imageQuality=1 and imageResolutionMode=Auto

The pdf before had some margin even if we used all the page area.
Now the bowser's preview starts with fit to printable area enabled, but it doesn't fit.
If I change to another scale (for example to custom) and then back to fit to printable area it works fine, but I need to do this every time.

It changed something in the various versions? I didn't find anything related to this in the release notes.
Here is a template report which does the problem
Template_vert.mrt
(10.47 KiB) Downloaded 8 times

Re: Fit to page difference after updating to new version

Posted: Fri Feb 06, 2026 5:59 pm
by Lech Kulikowski
Hello,

Your report is empty. Please send us a sample that we can run and reproduce the issue.

Thank you.

Re: Fit to page difference after updating to new version

Posted: Mon Feb 09, 2026 10:49 am
by r.bianco
The report is empty but the header and the footer which are cut when printing with the current size.

Re: Fit to page difference after updating to new version

Posted: Mon Feb 09, 2026 7:36 pm
by Lech Kulikowski
Hello,

How to reproduce the issue with your empty report?

Thank you.

Re: Fit to page difference after updating to new version

Posted: Tue Feb 10, 2026 10:29 am
by r.bianco
I attached an edited report with borders and writings
Template_vert.mrt
(14.42 KiB) Downloaded 5 times
Also 2 images which shows the problem
report_1.png
report_1.png (64.79 KiB) Viewed 164 times
report_2.png
report_2.png (77.18 KiB) Viewed 164 times
And the PDF files printed with the 2 different versions
Preview_2024.pdf
(60.36 KiB) Downloaded 8 times
Preview_2026.pdf
(60.2 KiB) Downloaded 7 times

Re: Fit to page difference after updating to new version

Posted: Wed Feb 11, 2026 9:43 pm
by Lech Kulikowski
Hello,

Please try to use the following option:
Stimulsoft.Report.Export.StiPdfExportService.PrintScaling = true;

Thank you.

Re: Fit to page difference after updating to new version

Posted: Thu Feb 12, 2026 2:10 pm
by r.bianco
Hello, it seem to work fine when printing a PDF directly and printing from preview/designer
Thank you