Closed BartMassey closed 2 years ago
This is due to the new PDF interpreter in Ghostscript 9.56.1.
It doesn't work for me even with your PR:
$ ../../../pdfsak --input-file ../../input/article1.pdf --output ../../output/addtext.pdf -t "$page" tl 0 0 --overwrite
ERROR: Cannot get page count.
cmd: ['gs', '-q', '-dNOSAFER', '-dNODISPLAY', '-c', '(/mnt/dataint/data/progetti_miei/pdfsak/examples/input/article1.pdf) (r) file runpdfbegin pdfpagecount = quit']
stdout: 32
stderr: free(): double free detected in tcache 2
As a temporary workaround downgrade Ghostscript to 9.55
Yes, your PR allows PDFsak to work with Ghoscript >= 9.56.
The additional error is due to -dNODISPLAY
, and is most likely a bug of Ghostscript 9.56.1. I opened a bug report, I'm gonna remove that option for the time being.
Thank you very much for this PR!
I will release a new version soon.
Describe the bug When invoked on Linux,
pdfsak
fails altogether with an error about page numbering failure. The error message is not well-formatted.To Reproduce
Expected behavior Expected
pdfsak
to page number my file.System information Please paste the output of
pdfsak --check-all
here:Will submit a PR which closes this in a moment.