delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2019/10/31/19:57:07

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
From: karl AT aspodata DOT se
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] gschem PostScript print-to-file output failing
In-reply-to: <a3d5103b-dd29-94f9-d6a6-f09a88132bc9@fastmail.com>
References: <a3d5103b-dd29-94f9-d6a6-f09a88132bc9 AT fastmail DOT com>
Comments: In-reply-to "Girvin Herr (gherrl AT fastmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
message dated "Thu, 31 Oct 2019 12:14:19 -0700."
Mime-Version: 1.0
Message-Id: <20191031233520.D696E89F2DD2@turkos.aspodata.se>
Date: Fri, 1 Nov 2019 00:35:20 +0100 (CET)
X-Virus-Scanned: ClamAV using ClamSMTP
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Girvin Herr:
...
> 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.

findfont is part of postscript, see page 535 (521 as numberd) in:
 https://www-cdf.fnal.gov/offline/PostScript/PLRM3.pdf
or chapter 5 (Fonts) for an overview.

It is possible that pstoedit has redefined it.

To test the findfont, create a file with:

/Times-Roman findfont 20 scalefont setfont
72 500 moveto (A test) show
showpage

and view it in gv (or ghostscript).
Then use pstoedit to converit it to dxf.

Here is a simple testfile with lines:
$ cat linjer.ps 
%A4: 210 297mm
%72 per tum, 72/25.4 per mm
/a 72 25.4 div def
a a scale
0.1 setlinewidth

 10 5 290 { 10 exch moveto 190 0 rlineto stroke } for

showpage

Try to see what happens when you convert it to dxf.

> Two questions:
> 
>  1. Is this problem known and is there a work-around?

Don't know.

>  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?

To make ps files, I use the following makefile lines:

GAF := lepton-cli  # lepton fork
#GAF := gaf  # gEDA suite

%_a4.ps:        %.sch
        $(GAF) export -m 0:0:0:0 -p iso_a4 -o $@ $<

%_a3.ps:        %.sch
        $(GAF) export -m 0:0:0:0 -p iso_a3 -o $@ $<

%.sch.ps:      %.sch
        $(GAF) export -f ps -o $@ $<

I tested out a few ways to convert to dxf for a collegue and forgot 
about it afterwords, so I cannot help with that part.

Unfortenately, my pstoedit doesn't seem to have a dxf converter.

Regards,
/Karl Hammar


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019