Boomaga / boomaga

Boomaga provides a virtual printer for CUPS. This can be used for print preview or for print booklets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to print with Boomaga from some programs because of GhostScript 9.54 incompatibility

alex65536 opened this issue · comments

I am trying to print a file to Boomaga and getting the following error:

Не получилось запустить gs: "GPL Ghostscript 9.54.0: Unrecoverable error, exit code 1
"

That happens because of deprecation of .setpdfwrite. The full stderr of gs looks as follows:

Error: /undefined in .setpdfwrite
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:731/1123(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--
Current allocation mode is local
GPL Ghostscript 9.54.0: Unrecoverable error, exit code 1

When running with older gs version, you may get the following deprecation warning:

**** WARNING: The .setpdfwrite operator has been deprecated and will be removed entirely
              in the next release of Ghostscript. The functionality of this operator has
              been reduced to increasing the size of the VM threshold. If you believe you
              have a real need for this then you should replace your call to .setpdfwrite
              with:

                  3000000 setvmthreshold

Similar bug report is present in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lazarus/+bug/1949192.