Boomaga / boomaga

Boomaga provides a virtual printer for CUPS. This can be used for print preview or for print booklets.
Other
182 stars 34 forks source link

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

Closed alex65536 closed 2 years ago

alex65536 commented 3 years ago

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.