Menu

#25 PDF -> SVG fails on ghostscript 9.27

v1.0_(example)
closed
3.74 (1)
1
2019-06-12
2019-05-07
jcwinkler
No

Given a single page pdf document test.pdf, the following command

pstoedit -f plot-svg test.pdf test.svg -dt -ssp -psarg -r9600x9600 -pta

fails with ghostscript 9.27 on both, Windows 8.1 and 10 1809 64-bit.

The output is

pstoedit: version 3.73 / DLL interface 108 (built: Jun 3 2018 - release build -
MS VC++ 1912 - 64-bit) : Copyright (C) 1993 - 2018 Wolfgang Glunz
Error: /undefined in .makeoperator
Operand stack:
false rectfill rectfill --nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-

  • 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa
    lse 1 %stopped_push 1991 1 3 %oparray_pop 1990 1 3 %oparray_
    pop 1978 1 3 %oparray_pop 1833 1 3 %oparray_pop --nostringval-
  • %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringv
    al-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
    Dictionary stack:
    --dict:1033/1123(G)-- --dict:0/20(G)-- --dict:216/300(L)-- --dict:1033/
    1123(G)--
    Current allocation mode is global
    Current file position is 15547
    GPL Ghostscript 9.27: Unrecoverable error, exit code 1
    PostScript/PDF Interpreter finished. Return status 1 executed command : C:\Progr
    am Files\gs\gs9.27\bin\gsdll64.dll -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY
    -dNOEPS -r9600x9600 C:/Users/winkler/AppData/Local/Temp/psin2
    The interpreter seems to have failed, cannot proceed !

Additionally passing the option -ndb results in a 0 Byte svg document.

Additionally passing the option -rdb results in the same error.

As one of the developers of the Inkscape plugin TexText (https://textext.github.io/textext/) we make heavy use of pstoedit so any help is highly appreciated. It worked well with all previous versions of pstoedit and ghostscript except with ghostscript 9.22 with the well known DELAYBIND-issue (fixed by http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=fa499a5809aab45b2891b5c8b2363d1bca890757)

Thank you very much!

Discussion

  • Wolfgang Glunz

    Wolfgang Glunz - 2019-05-07
     
    Hi Ken,
     
    looks like .makeoperator was removed in recent versions of ghostscript.
    Is there any recommended alternative?
     
    Thanks

    Wolfgang
    Gesendet: Dienstag, 07. Mai 2019 um 10:08 Uhr
    Von: "jcwinkler" <jcwinkler@users.sourceforge.net>
    An: "Ticket #25: PDF -> SVG fails on ghostscript 9.27" <25@bugs.pstoedit.p.re.sourceforge.net>
    Betreff: [pstoedit:bugs] #25 PDF -> SVG fails on ghostscript 9.27



    ---

    ** [bugs:#25] PDF -> SVG fails on ghostscript 9.27**

    **Status:** open
    **Group:** v1.0_(example)
    **Created:** Tue May 07, 2019 08:08 AM UTC by jcwinkler
    **Last Updated:** Tue May 07, 2019 08:08 AM UTC
    **Owner:** nobody


    Given a single page pdf document test.pdf, the following command

    pstoedit -f plot-svg test.pdf test.svg -dt -ssp -psarg -r9600x9600 -pta

    fails with ghostscript 9.27 on both, Windows 8.1 and 10 1809 64-bit.

    The output is

    pstoedit: version 3.73 / DLL interface 108 (built: Jun 3 2018 - release build -
    MS VC++ 1912 - 64-bit) : Copyright (C) 1993 - 2018 Wolfgang Glunz
    Error: /undefined in .makeoperator
    Operand stack:
    false rectfill rectfill --nostringval--
    Execution stack:
    %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-
    - 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa
    lse 1 %stopped_push 1991 1 3 %oparray_pop 1990 1 3 %oparray_
    pop 1978 1 3 %oparray_pop 1833 1 3 %oparray_pop --nostringval-
    - %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringv
    al-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
    Dictionary stack:
    --dict:1033/1123(G)-- --dict:0/20(G)-- --dict:216/300(L)-- --dict:1033/
    1123(G)--
    Current allocation mode is global
    Current file position is 15547
    GPL Ghostscript 9.27: Unrecoverable error, exit code 1
    PostScript/PDF Interpreter finished. Return status 1 executed command : C:\Progr
    am Files\gs\gs9.27\bin\gsdll64.dll -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY
    -dNOEPS -r9600x9600 C:/Users/winkler/AppData/Local/Temp/psin2
    The interpreter seems to have failed, cannot proceed !

    Additionally passing the option -ndb results in a 0 Byte svg document.

    Additionally passing the option -rdb results in the same error.

    As one of the developers of the Inkscape plugin TexText (https://textext.github.io/textext/) we make heavy use of pstoedit so any help is highly appreciated. It worked well with all previous versions of pstoedit and ghostscript except with ghostscript 9.22 with the well known DELAYBIND-issue (fixed by http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=fa499a5809aab45b2891b5c8b2363d1bca890757)

    Thank you very much!



    ---

    Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/pstoedit/bugs/25/>



    To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>
     
  • jcwinkler

    jcwinkler - 2019-05-14

    Are there any news w.r.t. this topic? Or anywhere to follow/ contribute? Thanks!

     
    • Wolfgang Glunz

      Wolfgang Glunz - 2019-05-14
      I reproduced the issue and see that it is due to some recent changes in ghostscript. If you revert back to gs9.26, then it should still be OK.
      I'm working on a fix.
       
      Wolfgang
       
      Gesendet: Dienstag, 14. Mai 2019 um 14:17 Uhr
      Von: "jcwinkler" <jcwinkler@users.sourceforge.net>
      An: "[pstoedit:bugs] " <25@bugs.pstoedit.p.re.sourceforge.net>
      Betreff: [pstoedit:bugs] #25 PDF -> SVG fails on ghostscript 9.27
      Are there any news w.r.t. this topic? Or anywhere to follow/ contribute? Thanks!


      ---

      ** [bugs:#25] PDF -> SVG fails on ghostscript 9.27**

      **Status:** open
      **Group:** v1.0_(example)
      **Created:** Tue May 07, 2019 08:08 AM UTC by jcwinkler
      **Last Updated:** Tue May 07, 2019 08:08 AM UTC
      **Owner:** nobody


      Given a single page pdf document test.pdf, the following command

      pstoedit -f plot-svg test.pdf test.svg -dt -ssp -psarg -r9600x9600 -pta

      fails with ghostscript 9.27 on both, Windows 8.1 and 10 1809 64-bit.

      The output is

      pstoedit: version 3.73 / DLL interface 108 (built: Jun 3 2018 - release build -
      MS VC++ 1912 - 64-bit) : Copyright (C) 1993 - 2018 Wolfgang Glunz
      Error: /undefined in .makeoperator
      Operand stack:
      false rectfill rectfill --nostringval--
      Execution stack:
      %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-
      - 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa
      lse 1 %stopped_push 1991 1 3 %oparray_pop 1990 1 3 %oparray_
      pop 1978 1 3 %oparray_pop 1833 1 3 %oparray_pop --nostringval-
      - %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringv
      al-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
      Dictionary stack:
      --dict:1033/1123(G)-- --dict:0/20(G)-- --dict:216/300(L)-- --dict:1033/
      1123(G)--
      Current allocation mode is global
      Current file position is 15547
      GPL Ghostscript 9.27: Unrecoverable error, exit code 1
      PostScript/PDF Interpreter finished. Return status 1 executed command : C:\Progr
      am Files\gs\gs9.27\bin\gsdll64.dll -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY
      -dNOEPS -r9600x9600 C:/Users/winkler/AppData/Local/Temp/psin2
      The interpreter seems to have failed, cannot proceed !

      Additionally passing the option -ndb results in a 0 Byte svg document.

      Additionally passing the option -rdb results in the same error.

      As one of the developers of the Inkscape plugin TexText (https://textext.github.io/textext/) we make heavy use of pstoedit so any help is highly appreciated. It worked well with all previous versions of pstoedit and ghostscript except with ghostscript 9.22 with the well known DELAYBIND-issue (fixed by http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=fa499a5809aab45b2891b5c8b2363d1bca890757)

      Thank you very much!



      ---

      Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/pstoedit/bugs/25/>



      To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>
       
  • Wolfgang Glunz

    Wolfgang Glunz - 2019-06-02

    should be solved in pstoedit 3.74

     
  • Wolfgang Glunz

    Wolfgang Glunz - 2019-06-02
    • labels: --> 3.74
    • status: open --> closed
    • assigned_to: Wolfgang Glunz
     
  • jcwinkler

    jcwinkler - 2019-06-04

    Thank you very much, Wolfgang!

    Unfortunately, now the produced svg-code does not show what is to be expected when rendered, please see the attached png and the corresponding pdf/svg-files.

    Code for generation:

    pstoedit -f plot-svg test.pdf test.svg -dt -ssp -psarg -r9600x9600 -pta
    

    Do you have any idea? Is it possible to fix this?

    Regards

    Jan

     
    • Wolfgang Glunz

      Wolfgang Glunz - 2019-06-08
       
      Hi Jan,
       
      I can see the issue but do not have a solution so far. But if you leave out the -psarg -r9600x9600 option, then it looks good.
       
      Best Regards
       
      Wolfgang
       
      Gesendet: Dienstag, 04. Juni 2019 um 12:07 Uhr
      Von: "jcwinkler" <jcwinkler@users.sourceforge.net>
      An: "[pstoedit:bugs] " <25@bugs.pstoedit.p.re.sourceforge.net>
      Betreff: [pstoedit:bugs] #25 PDF -> SVG fails on ghostscript 9.27
      Thank you very much, Wolfgang!

      Unfortunately, now the produced svg-code does not show what is to be expected when rendered, please see the attached png and the corresponding pdf/svg-files.

      Code for generation:
      ~~~
      pstoedit -f plot-svg test.pdf test.svg -dt -ssp -psarg -r9600x9600 -pta
      ~~~

      Do you have any idea? Is it possible to fix this?

      Regards

      Jan


      Attachments:

      - [pstoedit374-svgproblem.png](https://sourceforge.net/p/pstoedit/bugs/_discuss/thread/63a90ef541/c5fe/attachment/pstoedit374-svgproblem.png) (13.3 kB; image/png)
      - [tmp.pdf](https://sourceforge.net/p/pstoedit/bugs/_discuss/thread/63a90ef541/c5fe/attachment/tmp.pdf) (43.4 kB; application/pdf)
      - [tmp_gs926_pstoedit373.svg](https://sourceforge.net/p/pstoedit/bugs/_discuss/thread/63a90ef541/c5fe/attachment/tmp_gs926_pstoedit373.svg) (17.4 kB; image/svg+xml)
      - [tmp_gs927_pstoedit374.svg](https://sourceforge.net/p/pstoedit/bugs/_discuss/thread/63a90ef541/c5fe/attachment/tmp_gs927_pstoedit374.svg) (17.4 kB; image/svg+xml)


      ---

      ** [bugs:#25] PDF -> SVG fails on ghostscript 9.27**

      **Status:** closed
      **Group:** v1.0_(example)
      **Labels:** 3.74
      **Created:** Tue May 07, 2019 08:08 AM UTC by jcwinkler
      **Last Updated:** Sun Jun 02, 2019 06:18 PM UTC
      **Owner:** Wolfgang Glunz


      Given a single page pdf document test.pdf, the following command

      pstoedit -f plot-svg test.pdf test.svg -dt -ssp -psarg -r9600x9600 -pta

      fails with ghostscript 9.27 on both, Windows 8.1 and 10 1809 64-bit.

      The output is

      pstoedit: version 3.73 / DLL interface 108 (built: Jun 3 2018 - release build -
      MS VC++ 1912 - 64-bit) : Copyright (C) 1993 - 2018 Wolfgang Glunz
      Error: /undefined in .makeoperator
      Operand stack:
      false rectfill rectfill --nostringval--
      Execution stack:
      %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-
      - 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa
      lse 1 %stopped_push 1991 1 3 %oparray_pop 1990 1 3 %oparray_
      pop 1978 1 3 %oparray_pop 1833 1 3 %oparray_pop --nostringval-
      - %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringv
      al-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
      Dictionary stack:
      --dict:1033/1123(G)-- --dict:0/20(G)-- --dict:216/300(L)-- --dict:1033/
      1123(G)--
      Current allocation mode is global
      Current file position is 15547
      GPL Ghostscript 9.27: Unrecoverable error, exit code 1
      PostScript/PDF Interpreter finished. Return status 1 executed command : C:\Progr
      am Files\gs\gs9.27\bin\gsdll64.dll -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY
      -dNOEPS -r9600x9600 C:/Users/winkler/AppData/Local/Temp/psin2
      The interpreter seems to have failed, cannot proceed !

      Additionally passing the option -ndb results in a 0 Byte svg document.

      Additionally passing the option -rdb results in the same error.

      As one of the developers of the Inkscape plugin TexText (https://textext.github.io/textext/) we make heavy use of pstoedit so any help is highly appreciated. It worked well with all previous versions of pstoedit and ghostscript except with ghostscript 9.22 with the well known DELAYBIND-issue (fixed by http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=fa499a5809aab45b2891b5c8b2363d1bca890757)

      Thank you very much!



      ---

      Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/pstoedit/bugs/25/>



      To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>
       
    • Wolfgang Glunz

      Wolfgang Glunz - 2019-06-10
      I checked this problem further and noticed that pstoedit 3.74 (the latest release) works fine with gs9.26. Just gs9.27 shows this issue. So I'm not so sure this is a problem in pstoedit. Looks rather as one in gs.
       
      Jan, do you confirm my tests?
       
      Best Regards
       
      Wolfgang
      Gesendet: Dienstag, 04. Juni 2019 um 12:07 Uhr
      Von: "jcwinkler" <jcwinkler@users.sourceforge.net>
      An: "[pstoedit:bugs] " <25@bugs.pstoedit.p.re.sourceforge.net>
      Betreff: [pstoedit:bugs] #25 PDF -> SVG fails on ghostscript 9.27
      Thank you very much, Wolfgang!

      Unfortunately, now the produced svg-code does not show what is to be expected when rendered, please see the attached png and the corresponding pdf/svg-files.

      Code for generation:
      ~~~
      pstoedit -f plot-svg test.pdf test.svg -dt -ssp -psarg -r9600x9600 -pta
      ~~~

      Do you have any idea? Is it possible to fix this?

      Regards

      Jan


      Attachments:

      - [pstoedit374-svgproblem.png](https://sourceforge.net/p/pstoedit/bugs/_discuss/thread/63a90ef541/c5fe/attachment/pstoedit374-svgproblem.png) (13.3 kB; image/png)
      - [tmp.pdf](https://sourceforge.net/p/pstoedit/bugs/_discuss/thread/63a90ef541/c5fe/attachment/tmp.pdf) (43.4 kB; application/pdf)
      - [tmp_gs926_pstoedit373.svg](https://sourceforge.net/p/pstoedit/bugs/_discuss/thread/63a90ef541/c5fe/attachment/tmp_gs926_pstoedit373.svg) (17.4 kB; image/svg+xml)
      - [tmp_gs927_pstoedit374.svg](https://sourceforge.net/p/pstoedit/bugs/_discuss/thread/63a90ef541/c5fe/attachment/tmp_gs927_pstoedit374.svg) (17.4 kB; image/svg+xml)


      ---

      ** [bugs:#25] PDF -> SVG fails on ghostscript 9.27**

      **Status:** closed
      **Group:** v1.0_(example)
      **Labels:** 3.74
      **Created:** Tue May 07, 2019 08:08 AM UTC by jcwinkler
      **Last Updated:** Sun Jun 02, 2019 06:18 PM UTC
      **Owner:** Wolfgang Glunz


      Given a single page pdf document test.pdf, the following command

      pstoedit -f plot-svg test.pdf test.svg -dt -ssp -psarg -r9600x9600 -pta

      fails with ghostscript 9.27 on both, Windows 8.1 and 10 1809 64-bit.

      The output is

      pstoedit: version 3.73 / DLL interface 108 (built: Jun 3 2018 - release build -
      MS VC++ 1912 - 64-bit) : Copyright (C) 1993 - 2018 Wolfgang Glunz
      Error: /undefined in .makeoperator
      Operand stack:
      false rectfill rectfill --nostringval--
      Execution stack:
      %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-
      - 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa
      lse 1 %stopped_push 1991 1 3 %oparray_pop 1990 1 3 %oparray_
      pop 1978 1 3 %oparray_pop 1833 1 3 %oparray_pop --nostringval-
      - %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringv
      al-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
      Dictionary stack:
      --dict:1033/1123(G)-- --dict:0/20(G)-- --dict:216/300(L)-- --dict:1033/
      1123(G)--
      Current allocation mode is global
      Current file position is 15547
      GPL Ghostscript 9.27: Unrecoverable error, exit code 1
      PostScript/PDF Interpreter finished. Return status 1 executed command : C:\Progr
      am Files\gs\gs9.27\bin\gsdll64.dll -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY
      -dNOEPS -r9600x9600 C:/Users/winkler/AppData/Local/Temp/psin2
      The interpreter seems to have failed, cannot proceed !

      Additionally passing the option -ndb results in a 0 Byte svg document.

      Additionally passing the option -rdb results in the same error.

      As one of the developers of the Inkscape plugin TexText (https://textext.github.io/textext/) we make heavy use of pstoedit so any help is highly appreciated. It worked well with all previous versions of pstoedit and ghostscript except with ghostscript 9.22 with the well known DELAYBIND-issue (fixed by http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=fa499a5809aab45b2891b5c8b2363d1bca890757)

      Thank you very much!



      ---

      Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/pstoedit/bugs/25/>



      To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>
       
  • jcwinkler

    jcwinkler - 2019-06-12

    Hi Wolfgang,
    I confirm that removing the -psarg -r9600x9600 option solves the problem. The rendered svg now looks as expected and I updated the source code of the Inkscape extension using pstoedit.
    Thank you very much!

     

    Last edit: jcwinkler 2019-06-12

Log in to post a comment.

MongoDB Logo MongoDB