pstoedit 3.70-5.22-x86-64 from leap 42.3 standard repo
Tested with:
ghostscript 9.15-13.14-x86_64 from leap 42.3 standard repo,
ghostscript 9.15-14.3.1-x86_64 from leap 42.3 update repo, or
ghostscript 9.22-97.1-x86_64 from leap 42.3 printing repo
With either ghostcript version installed, an attempt to convert a pdf file to dxf (drawing exchange format) throws an error:
Version 9.15-13:
:~> pstoedit -nb -f dxf:-mm DE-HS-2-MET-001_REV_0.pdf DE-HS-2-MET-001_REV_0.dxf
pstoedit: version 3.70 / DLL interface 108 (built: Jul 8 2017 - release build - g++ 4.8.5 - 64-bit) : Copyright (C) 1993 - 2014 Wolfgang Glunz
Error: /undefined in --run--
Operand stack:
false false --dict:280/300(ro)(G)-- .Qqwarning_issued false
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1950 1 3 %oparray_pop 1949 1 3 %oparray_pop 1933 1 3 %oparray_pop 1820 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- 1950 1 3 %oparray_pop 1949 1 3 %oparray_pop 1933 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue --nostringval--
Dictionary stack:
--dict:1182/1684(G)-- --dict:1/20(G)-- --dict:302/450(L)-- --dict:302/450(L)-- --dict:116/127(ro)(G)-- --dict:280/300(ro)(G)-- --dict:26/32(L)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 87895
GPL Ghostscript 9.15: Unrecoverable error, exit code 1
Unrecoverable error: typecheck in setpagedevice
Operand stack:
false false false --nostringval--
PostScript/PDF Interpreter finished. Return status 256 executed command : /usr/bin/gs -I/home/blimmer/.fonts -q -dNOBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS "/tmp/psin3fWK8C"
The interpreter seems to have failed, cannot proceed !
Version 9.15-14 gives a larger output, but fails similar to the other two. I can downgrade and post the output in necessary.
Version 9.22:
:~> pstoedit -f dxf:-mm DE-HS-2-MET-001_REV_0.pdf DE-HS-2-MET-001_REV_0.dxf
pstoedit: version 3.70 / DLL interface 108 (built: Jul 8 2017 - release build - g++ 4.8.5 - 64-bit) : Copyright (C) 1993 - 2014 Wolfgang Glunz
*** WARNING - the DELAYBIND command has been deprecated, and will be
removed in the next version. For now you can restore
the behaviour by using -dREALLYDEALYBIND but if you
require continued use of this command you should contact
the Ghostscript developers. Commercial customers of
Artifex should email their support contact, free users
are encouraged to talk to us on the #ghostscript IRC
channel on irc.freenode.net.
Unrecoverable error: undefined in DELAYBIND
PostScript/PDF Interpreter finished. Return status 65280 executed command : /usr/bin/gs -I/home/blimmer/.fonts -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS "/tmp/psinOOcPjJ"
The interpreter seems to have failed, cannot proceed !
blimmer@bruno:~/Trabalhos em curso/PDF> man pstoedit
blimmer@bruno:~/Trabalhos em curso/PDF> pstoedit -nb -f dxf:-mm DE-HS-2-MET-001_REV_0.pdf DE-HS-2-MET-001_REV_0.dxf
pstoedit: version 3.70 / DLL interface 108 (built: Jul 8 2017 - release build - g++ 4.8.5 - 64-bit) : Copyright (C) 1993 - 2014 Wolfgang Glunz
Error: /undefined in .currentglobal
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1999 1 3 %oparray_pop 1998 1 3 %oparray_pop 1982 1 3 %oparray_pop 1868 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:980/1684(G)-- --dict:0/20(G)-- --dict:130/200(L)--
Current allocation mode is local
Current file position is 6949
GPL Ghostscript 9.22: Unrecoverable error, exit code 1
PostScript/PDF Interpreter finished. Return status 256 executed command : /usr/bin/gs -I/home/blimmer/.fonts -q -dNOBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS "/tmp/psin4JQ92L"
The interpreter seems to have failed, cannot proceed !
… Ghostscript 9.22 depreciates the -dDELAYBIND flag which pstoedit depends on. The result is no output from pstoedit. pstoedit and this project haven’t seen any development in while so I don’t expect this will magically be fixed.
…
Downgrading Ghostscript to 9.21 seems the logical answer,but …
It looks like this upstream bug that should be fixed, but apparently isn’t: https://bugs.ghostscript.com/show_bug.cgi?id=697846
This capability is quite important to my work, I’m stumped without it. Please help!
Thank you,
Bruno
Note: the online converters I’ve tried until now are no good, as they don’t preserve line thickness, something that pstoedit/ghostcript does.