spectre-exporter-pdf: gs arguments include unsupported parameter '.setpdfwrite'
As of ghostscript 9.54 this parameter has been removed and is now unrecognized, causing pdf export to fail.
ref: https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=9699aea5cf6491106a2ad1be260d9eb2e85903c3
> gs -dMaxBitmap=10000000 -dBATCH -dNOPAUSE -dSAFER -P- -sDEVICE=pdfwrite -sOutputFile=/tmp/ttt -c .setpdfwrite
GPL Ghostscript 9.55.0 (2021-09-27)
Copyright (C) 2021 Artifex Software, Inc. All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Error: /undefined in .setpdfwrite
...
...
GPL Ghostscript 9.55.0: Unrecoverable error, exit code 1
I had started to make a merge request to remove this argument but I noticed I was still getting errors using libspectre:
(libspectre) ghostscript reports: fatal internal error -100
** (xreader:315375): WARNING **: 11:19:27.926: libspectre reports: render error
I don't have a lot of time to dig into this more at the moment, so I thought it might be more useful to report it - I think this render error is maybe an issue in libspectre itself, since the gs test command above succeeds without errors when you remove the .setpdfwrite parameter.
On Mint 21 (Ubuntu 22.04), libspectre version 0.2.10, ghostscript version 9.55.0
If I can provide any more info please let me know - Thanks!
Edited by Michael Webster