X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=vcRjqI0GvvXv7dEcadzkusZ2Gb+MwcI2Z5X8PZPqXP8=; b=VIRq8MY5xdYeUCFJdHQ/H6NEeKzsZnh+/AouBJJbtupMHsmgBK3TCex4Wdz/KLHkhT SWAGrBXOdOKKDRXkT1IGZoUHLV3qynOxmyYOFP/9PVIdAHym8x5JCtLGbyzHE6BD8LYX 8oRl53mkInnnxVBQYaOK+tkHDTY+FN1E9nHUNt3xGQ1QqoXX7ZOuidVLw3kIfkm6rbPe AsU9Gy3YdnA55r0tucVDVskV1dqXPuS/tLfEqP/C0Zoi7t/835RgsRDX7JxwLMXxK1LY yEjqte1BYxIy0hHPizxZcUUxyPiDt3vBglqGJiii8Y1iEAr5aLbGMSalXiUUOwJ+GiUy bP5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=vcRjqI0GvvXv7dEcadzkusZ2Gb+MwcI2Z5X8PZPqXP8=; b=QjTzMETj68kzyg+uTD+xqDQRDiUmBIV+dqPYVZ25Z5NVJqHDeYdfkutLwnAAJE6nSN doigRElaGlHLiTR/Tzw8q3uY5PAPifPzWkCFRy1mvDrYy+aFuAx5Dz5WK3o+D3G72Bca CI2jZiGUCQ6c2tfKCB4rBo9MZuGGPOG68pZbmyAkvbQUG/YcxBbEu1ffV/M2JXX/Ypf/ EoIjUqNW0OEe0qoUuSl3iUHP585675KN7vW3cS//7tJJ90+2Oaa2p28A3/pa9LBuux72 I0v8zOI2eFytoGJwZE/bEOJSX9N0jRZMD/tPKRc7nAV8n2nJZScjJ72ZlM8/C/B353T5 0o8Q== X-Gm-Message-State: APjAAAXc/J0jaSHmeFf5Ad2Yz7vj6uyB6cXvsAQd5oyEtkORjupQ6qKM Lxuqmcer9EMy4f/GzeydfrOQqB/OjFrfZm/UrOB04A== X-Google-Smtp-Source: APXvYqwHdYbEka+xkoSLxPf8YdY883v0Ai2qdcyARd+28vcCBvvh2wOa7l65OMXV2oU5VZrM3lTU4QRzr7ofKqttQDQ= X-Received: by 2002:a81:320f:: with SMTP id y15mr6357218ywy.171.1572570393304; Thu, 31 Oct 2019 18:06:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Erich Heinzle (a1039181 AT gmail DOT com) [via geda-user AT delorie DOT com]" Date: Fri, 1 Nov 2019 11:36:20 +1030 Message-ID: Subject: Re: [geda-user] gschem PostScript print-to-file output failing To: geda-user Content-Type: multipart/alternative; boundary="000000000000ad62ba05963e9361" Reply-To: geda-user AT delorie DOT com --000000000000ad62ba05963e9361 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Inkscape may be worth looking at. It can export hpgl, svg and dxf, among other things. The trick is to figure out if it will cope with eps or ps files as input. Regards, Erich On Fri, 1 Nov 2019 06:29 Girvin Herr (gherrl AT fastmail DOT com) [via geda-user AT delorie DOT com], wrote: > Greetings, > > I am using gEDA gschem 1.8.2 (g875406c) and GhostScript 9.26 on Slackware > Linux 14.2. > > What I am trying to do is export my gschem drawing and import it into > QCAD. I "printed" the drawing to a PostScript file and tried to use > pstoedit to convert the PostScript file to a DXF file which QCAD will > import. This has worked well on a PCB eps exported file. In fact I tested > it today and it still is working. However, pstoedit seems to fail. Rather= , > it seems to be GhostScript that is failing when it encounters a "findfont= " > name in the gschem PostScript file. I am pretty sure this process worked > for me in the past (years ago) when I had to convert a gschem drawing to = a > DXF file. Something since then has changed and I expect that to have been > GhostScript, since it has been updated twice since I may have used it. Th= e > gs versions I have had installed in the past are 9.19, 9.25, and now 9.26= . > According to my research on pstoedit, the pstoedit failures started with > the 9.2x series, if that helps. > > My pstoedit command is: > > pstoedit -f dxf -xscale 1.0 -yscale 1.0 gschem_file_name.ps > gschem_file_name.ps.dxf > > Here is the output of pstoedit: > > ------ > > pstoedit: version 3.70 / DLL interface 108 (built: Oct 30 2019 - release > build - g++ 5.3.0 - 32-bit) : Copyright (C) 1993 - 2014 Wolfgang Glunz > Error: in > /undefined/findfontgEDAFont--nostringval--Helvetica%interp_exit.runexec2-= -nostringval--.findfontop--nostringval--2%stopped_push- > Operand stack: > > Execution stack: > > -nostringval--.findfontop.findfontopfalse1%stopped_push204513%oparray_pop= 204413%oparray_pop202413%oparray_pop188413%oparray_pop--nostringval--%error= exec_pop.runexec2--nostringval--.findfontop--nostringval--2%stopped_push--n= ostringval--204513%oparray_pop204413%oparray_pop202413%oparray_pop188413%op= array_pop--nostringval--%errorexec_pop.runexec2--nostringval--.findfontop--= nostringval > > Dictionary stack: > --dict:/(ro)(G)-- --dict:/(G)-- --dict:/(L)-- > Current allocation mode is local > Current file position is > --2%stopped_push--nostringval--.findfontop.findfontop197533%oparray_pop96= 6168402033345012792GPL > Ghostscript 9.26: Unrecoverable error, exit code 1 > PostScript/PDF Interpreter finished. Return status 256 executed command : > /usr/bin/gs -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS > "/tmp/psinACg2Dl" > The interpreter seems to have failed, cannot proceed ! > > ----- > > I then converted the gschem ps file to eps with eps2eps and then used > pstoedit on it, with the following response: > > ------ > > pstoedit: version 3.70 / DLL interface 108 (built: Oct 30 2019 - release > build - g++ 5.3.0 - 32-bit) : Copyright (C) 1993 - 2014 Wolfgang Glunz > %%[ Error handled by opdfread.ps : undefined; OffendingCommand: findfont > ]%% > GPL Ghostscript 9.26: Unrecoverable error, exit code 1 > PostScript/PDF Interpreter finished. Return status 256 executed command : > /usr/bin/gs -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS > "/tmp/psinyEOi33" > The interpreter seems to have failed, cannot proceed ! > > ------ > > It looks like maybe "findfont" was a PostScript key word or function at > one time, but now GhostScript is no longer supporting it. I am not a > Postscript guru. > > Two questions: > > 1. Is this problem known and is there a work-around? > > 2. Is there another gschem process I can use to get a workable > PostScript, Encapsulated PostScript, or DXF-directly output file which= I > can import into QCAD? > > Thanks. > > Girvin Herr > > > > --000000000000ad62ba05963e9361 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Inkscape may be worth looking at. It can export hpgl, svg= and dxf, among other things. The trick is to figure out if it will cope wi= th eps or ps files as input.

R= egards,

Erich

On Fr= i, 1 Nov 2019 06:29 Girvin Herr (ghe= rrl AT fastmail DOT com) [via geda-us= er AT delorie DOT com], <geda-user= @delorie.com> wrote:
=20 =20 =20

Greetings,

I am using gEDA gschem 1.8.2 (g875406c) and GhostScript 9.26 on Slackware Linux 14.2.

What I am trying to do is export my gschem drawing and import it into QCAD. I "printed" the drawing to a PostScript file and= tried to use pstoedit to convert the PostScript file to a DXF file which QCAD will import. This has worked well on a PCB eps exported file. In fact I tested it today and it still is working. However, pstoedit seems to fail. Rather, it seems to be GhostScript that is failing when it encounters a "findfont" name in the gschem PostScript file. I am pretty sure this process worked for me in the past (years ago) when I had to convert a gschem drawing to a DXF file. Something since then has changed and I expect that to have been GhostScript, since it has been updated twice since I may have used it. The gs versions I have had installed in the past are 9.19, 9.25, and now 9.26. According to my research on pstoedit, the pstoedit failures started with the 9.2x series, if that helps.

My pstoedit command is:

=C2=A0=C2=A0=C2=A0 pstoedit -f dxf -xscale 1.0 -yscale 1.0=C2=A0 gs= chem_file_name.ps=C2=A0 gschem_file_name.ps.dxf

Here is the output of pstoedit:

------

pstoedit: version 3.70 / DLL interface 108 (built: Oct 30 2019 - release build - g++ 5.3.0 - 32-bit) : Copyright (C) 1993 - 2014 Wolfgang Glunz
Error:=C2=A0 in /undefined/findfontgEDAFont--nostringval--Helvetica%interp_exit.runexec2--n= ostringval--.findfontop--nostringval--2%stopped_push-
Operand stack:
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
Execution stack:
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -nostringval--.findfontop.findfontopfalse1%stopped_push204513%oparray_pop20= 4413%oparray_pop202413%oparray_pop188413%oparray_pop--nostringval--%errorex= ec_pop.runexec2--nostringval--.findfontop--nostringval--2%stopped_push--nos= tringval--204513%oparray_pop204413%oparray_pop202413%oparray_pop188413%opar= ray_pop--nostringval--%errorexec_pop.runexec2--nostringval--.findfontop--no= stringval=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
Dictionary stack:
=C2=A0=C2=A0 --dict:/(ro)(G)--=C2=A0=C2=A0 --dict:/(G)--=C2=A0=C2=A0 = --dict:/(L)--
Current allocation mode is local
Current file position is
--2%stopped_push--nostringval--.findfontop.findfontop197533%oparray_pop9661= 68402033345012792GPL Ghostscript 9.26: Unrecoverable error, exit code 1
PostScript/PDF Interpreter finished. Return status 256 executed command : /usr/bin/gs -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS "/tmp/psinACg2Dl"
The interpreter seems to have failed, cannot proceed !

-----

I then converted the gschem ps file to eps with eps2eps and then used pstoedit on it, with the following response:

------

pstoedit: version 3.70 / DLL interface 108 (built: Oct 30 2019 - release build - g++ 5.3.0 - 32-bit) : Copyright (C) 1993 - 2014 Wolfgang Glunz
%%[ Error handled by opdfread.ps : undefined; OffendingCommand: findfont ]%%
GPL Ghostscript 9.26: Unrecoverable error, exit code 1
PostScript/PDF Interpreter finished. Return status 256 executed command : /usr/bin/gs -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS "/tmp/psinyEOi33"
The interpreter seems to have failed, cannot proceed !

------

It looks like maybe "findfont" was a PostScript key word o= r function at one time, but now GhostScript is no longer supporting it. I am not a Postscript guru.

Two questions:

  1. Is this problem known and is there a work-around?

  2. Is there another gschem process I can use to get a workable PostScript, Encapsulated PostScript, or DXF-directly output file which I can import into QCAD?
Thanks.

Girvin Herr



--000000000000ad62ba05963e9361--