Closed bkroggel closed 1 year ago
Digging to the Ghostscript release notes indeed showed that a major changes has been implemented recently. It seems like the rewritten PDF interpreter has caused the issues mentioned above. https://www.ghostscript.com/doc/current/History9.htm
As a workaround adding the flag -dNEWPDF=false
will force Ghostscript to still make use of the old PDF interpreter written in PostScript rather than C.
That obviously isn‘t a perfect solution as the reimplemented interpreter should do the trick as well — however it at least keeps everything as it should be for now.
Sorry for the late reply. This is interesting.
I wonder:
-dNEWPDF=false
on older GS versions will break the script (we need to test the version before using it if that is the case)I will need to investigate...
I am pretty confident that this is not immediately related to pdfScale but rather to a change in one of its dependencies that leads to the outcome.
Expectation:
When a pdf (which in our sample case is a svg file that has been converted to a pdf) gets resized to a new file that has different dimensions than the original one the larger side of the content should fill 100% of the new page while the smaller side should be centered.
Current behaviour:
Resizeing also resizes the content as expected but they do not get centered/aligned correctly.
How to replicate
pdfscale -r "custom pt 700 400" Wikipedia_wordmark.pdf
OS: macOS Monterey 12.2.1 (21D62) GS:
9.56.1
Imagemagick:7.1.0-36 Q16-HDRI arm 20076
BC:bc 1.06
Maybe as a small addon — I have another Mac running Big Sure 11.5.1 with the identical Imagemagick/BC setup but a slightly outdated GS Version (9.54.0) where everything outputs like expected — in case that is helpful.