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=GSE+Y8aPCRUCXtYSnz+0ARPxM1j7sHGhrxYtMyyX1X0=; b=jERTFb9PlBJC1iBnojKWfjv9IkwleUVAvXJcT7zc+HVUUVMb2F/fbLZqoplpq8V9Hm c+dMnVV6BjlOXT0bH3NWi/n3LCxng8wzVyNHcQ78K7QHgakjaLBBic23HkxdHnJNzE/4 4+DzJTDJSQSlz8MU33PEZzZ9sp2pKmb7APaxqQsTaTcLVGjPEQrUNHWnRHHLHs84rAsK RjmFGtkCamzFVoiWz+6wigNin9sqGdkT+2w+lCpxTRVljqohDd/TsOSuuGtq1EJ0ocm1 6gN4iogTRw9bMqxA8/iwRMc2PwOPehaSrqJmLFHnrE6B4gYp0vusvAiG4ALMPTIJaOVq HvDg== 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=GSE+Y8aPCRUCXtYSnz+0ARPxM1j7sHGhrxYtMyyX1X0=; b=Gk81hL18h7J0Sf5BL9qrpl9qRv5HEfZKNIV0lV0BilyYObt9gbrTNrMSOTJAARzZBJ R/L0cDtxszCehHp1FC+1HDG0jBugDpEe1GT4MfXDurQNjX6aJECRExtzS2Maid/ZZtIk VGaUDLBGdnSXF/aYELn9C2S9FhK99CljSUOdSou+g8RJkprk/6TLVyeZxUVdb5hXMg4n oUEoYQ2XVpX4yqYP6qpJ/3rvl02FgOqvElE0esrGFMQiO7CcEKJMMeY/DVWIwGPIZATu PrpgJkZwlmkg1RUy1dtmKNkX2lWRJZE5AOREL6AMTcfViGWH/Rfypu1QRPev8YMN1QES BSaA== X-Gm-Message-State: APjAAAXHP2RgkFpCLoTe2Y52aLlo47jqdH1fINnvzWp/ac66bgdSRYsB dqrChGWpT6r1TclBoEpfyKk4wgZqc3ptbHq+28jBuA== X-Google-Smtp-Source: APXvYqwlcU0ZjjLQ7/JZ6lEK8h8v7WsZsSIXCzTwY2jctE5tQ209FEjPNrMUvmc89NA4nbc9E5o0dxIJpenuPcpEVkk= X-Received: by 2002:a25:e6c4:: with SMTP id d187mr7037728ybh.94.1572579373123; Thu, 31 Oct 2019 20:36:13 -0700 (PDT) MIME-Version: 1.0 References: <20191101025313 DOT 24BAB89F2DDE AT turkos DOT aspodata DOT se> In-Reply-To: <20191101025313.24BAB89F2DDE@turkos.aspodata.se> From: "Erich Heinzle (a1039181 AT gmail DOT com) [via geda-user AT delorie DOT com]" Date: Fri, 1 Nov 2019 14:06:01 +1030 Message-ID: Subject: Re: [geda-user] gschem PostScript print-to-file output failing To: geda-user Content-Type: multipart/alternative; boundary="000000000000ea8cd0059640aa7d" Reply-To: geda-user AT delorie DOT com --000000000000ea8cd0059640aa7d Content-Type: text/plain; charset="UTF-8" Inkscape suppirts both pdf and ps impirt it seems http://wiki.inkscape.org/wiki/index.php/Current_PDF_Support On Fri, 1 Nov 2019 14:01 , wrote: > Erich: > > 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. > ... > > Inkscape has a policy file /etc/ImageMagick-7/policy.xml (or some other > number). It has lines like: > > # grep PS /etc/ImageMagick-7/policy.xml > > ... > > which tells it to not allow ps, etc., files. > > If you create a file like: > $ cat ~/.config/ImageMagick/policy.xml > > > > > name NMTOKEN #IMPLIED pattern CDATA #IMPLIED rights NMTOKEN #IMPLIED > stealth NMTOKEN #IMPLIED value CDATA #IMPLIED> > ]> > > > > > > > > > > > imagemagick will work on postscript files again. > > Make sure you have Ghostscript version 9.24 or later: > https://www.kb.cert.org/vuls/id/332928/ > > Regards, > /Karl Hammar > > --000000000000ea8cd0059640aa7d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Inkscape suppirts both pdf and ps impirt it seems




On Fri, 1 Nov 2019 14:01 , <karl AT aspodata DOT se> wrote:
Erich:
> Inkscape may be worth looking at. It can export hpgl, svg and dxf, amo= ng
> other things. The trick is to figure out if it will cope with eps or p= s
> files as input.
...

Inkscape has a policy file /etc/ImageMagick-7/policy.xml (or some other number). It has lines like:

# grep PS /etc/ImageMagick-7/policy.xml
=C2=A0 <policy domain=3D"coder" rights=3D"none" patt= ern=3D"PS" />
...

which tells it to not allow ps, etc., files.

If you create a file like:
$ cat ~/.config/ImageMagick/policy.xml
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<!DOCTYPE policymap [
=C2=A0 <!ELEMENT policymap (policy)+>
=C2=A0 <!ATTLIST policymap xmlns CDATA #FIXED ''>
=C2=A0 <!ELEMENT policy EMPTY>
=C2=A0 <!ATTLIST policy xmlns CDATA #FIXED '' domain NMTOKEN #RE= QUIRED
=C2=A0 =C2=A0 name NMTOKEN #IMPLIED pattern CDATA #IMPLIED rights NMTOKEN #= IMPLIED
=C2=A0 =C2=A0 stealth NMTOKEN #IMPLIED value CDATA #IMPLIED>
]>

<policymap>
=C2=A0 <policy domain=3D"coder" rights=3D"read|write"= ; pattern=3D"PS" />
=C2=A0 <policy domain=3D"coder" rights=3D"read|write"= ; pattern=3D"PS2" />
=C2=A0 <policy domain=3D"coder" rights=3D"read|write"= ; pattern=3D"PS3" />
=C2=A0 <policy domain=3D"coder" rights=3D"read|write"= ; pattern=3D"EPS" />
=C2=A0 <policy domain=3D"coder" rights=3D"read|write"= ; pattern=3D"PDF" />
=C2=A0 <policy domain=3D"coder" rights=3D"read|write"= ; pattern=3D"XPS" />
</policymap>

imagemagick will work on postscript files again.

=C2=A0Make sure you have Ghostscript version 9.24 or later:
https://www.kb.cert.org/vuls/id/332928/

Regards,
/Karl Hammar

--000000000000ea8cd0059640aa7d--