Error reported from ghostscript from inkscape PDF export : "error executing PDF token"
Hi
I'm using the wonderful new inkscape packaged with Debian bookworm (12.0), inkscape 1.2.2-2+b1.
Exporting multi-page PDFs work fine. I am downsampling the output in ghostscript with a script using gs. The gs export fragment is as follows:
gs -sDEVICE=pdfwrite -dFIXEDMEDIA -dPDFFitPage -dCompatibilityLevel=1.4 \
-dDownsampleColorImages=true -dColorImageDownsampleThreshold=1.0 \
-dColorImageResolution=300 -dDownsampleGrayImages=true \
-dGrayImageDownsampleThreshold=1.0 -dGrayImageResolution=300 \
-o $OUTPUT $INPUT
In processing the PDF, which is still readable by my PDF readers, gs reports:
The following errors were encountered at least once while processing this file:
error executing PDF token
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> cairo 1.16.0 (https://cairographics.org) <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
I thought I'd drop the issue here in case it is of interest/use. I'm happy to do further debugging if that would be helpful.
Edited by Rory CL