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

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: <a3d5103b-dd29-94f9-d6a6-f09a88132bc9 AT fastmail DOT com>
<CAHUm0tO+JHz8T471d19q2dWeybxSVeaatYymtNx7c1TeKSGk=A AT mail DOT gmail DOT com> <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]" <geda-user AT delorie DOT com>
Date: Fri, 1 Nov 2019 14:06:01 +1030
Message-ID: <CAHUm0tP4UD0NV46GaGzJUNFgwfw_PgSoY+YCWQKWmy6bA0ncSg@mail.gmail.com>
Subject: Re: [geda-user] gschem PostScript print-to-file output failing
To: geda-user <geda-user AT delorie DOT com>
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 , <karl AT aspodata DOT se> 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
>   <policy domain="coder" rights="none" pattern="PS" />
> ...
>
> which tells it to not allow ps, etc., files.
>
> If you create a file like:
> $ cat ~/.config/ImageMagick/policy.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE policymap [
>   <!ELEMENT policymap (policy)+>
>   <!ATTLIST policymap xmlns CDATA #FIXED ''>
>   <!ELEMENT policy EMPTY>
>   <!ATTLIST policy xmlns CDATA #FIXED '' domain NMTOKEN #REQUIRED
>     name NMTOKEN #IMPLIED pattern CDATA #IMPLIED rights NMTOKEN #IMPLIED
>     stealth NMTOKEN #IMPLIED value CDATA #IMPLIED>
> ]>
>
> <policymap>
>   <policy domain="coder" rights="read|write" pattern="PS" />
>   <policy domain="coder" rights="read|write" pattern="PS2" />
>   <policy domain="coder" rights="read|write" pattern="PS3" />
>   <policy domain="coder" rights="read|write" pattern="EPS" />
>   <policy domain="coder" rights="read|write" pattern="PDF" />
>   <policy domain="coder" rights="read|write" pattern="XPS" />
> </policymap>
>
> 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

<div dir=3D"auto">Inkscape suppirts both pdf and ps impirt it seems<div dir=
=3D"auto"><br></div><div dir=3D"auto"><a href=3D"http://wiki.inkscape.org/w=
iki/index.php/Current_PDF_Support">http://wiki.inkscape.org/wiki/index.php/=
Current_PDF_Support</a><br></div><div dir=3D"auto"><br></div><div dir=3D"au=
to"><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=
=3D"gmail_attr">On Fri, 1 Nov 2019 14:01 , &lt;<a href=3D"mailto:karl AT aspod=
ata.se">karl AT aspodata DOT se</a>&gt; wrote:<br></div><blockquote class=3D"gmail=
_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:=
1ex">Erich:<br>
&gt; Inkscape may be worth looking at. It can export hpgl, svg and dxf, amo=
ng<br>
&gt; other things. The trick is to figure out if it will cope with eps or p=
s<br>
&gt; files as input.<br>
...<br>
<br>
Inkscape has a policy file /etc/ImageMagick-7/policy.xml (or some other <br=
>
number). It has lines like:<br>
<br>
# grep PS /etc/ImageMagick-7/policy.xml<br>
=C2=A0 &lt;policy domain=3D&quot;coder&quot; rights=3D&quot;none&quot; patt=
ern=3D&quot;PS&quot; /&gt;<br>
...<br>
<br>
which tells it to not allow ps, etc., files.<br>
<br>
If you create a file like:<br>
$ cat ~/.config/ImageMagick/policy.xml<br>
&lt;?xml version=3D&quot;1.0&quot; encoding=3D&quot;UTF-8&quot;?&gt;<br>
&lt;!DOCTYPE policymap [<br>
=C2=A0 &lt;!ELEMENT policymap (policy)+&gt;<br>
=C2=A0 &lt;!ATTLIST policymap xmlns CDATA #FIXED &#39;&#39;&gt;<br>
=C2=A0 &lt;!ELEMENT policy EMPTY&gt;<br>
=C2=A0 &lt;!ATTLIST policy xmlns CDATA #FIXED &#39;&#39; domain NMTOKEN #RE=
QUIRED<br>
=C2=A0 =C2=A0 name NMTOKEN #IMPLIED pattern CDATA #IMPLIED rights NMTOKEN #=
IMPLIED<br>
=C2=A0 =C2=A0 stealth NMTOKEN #IMPLIED value CDATA #IMPLIED&gt;<br>
]&gt;<br>
<br>
&lt;policymap&gt;<br>
=C2=A0 &lt;policy domain=3D&quot;coder&quot; rights=3D&quot;read|write&quot=
; pattern=3D&quot;PS&quot; /&gt;<br>
=C2=A0 &lt;policy domain=3D&quot;coder&quot; rights=3D&quot;read|write&quot=
; pattern=3D&quot;PS2&quot; /&gt;<br>
=C2=A0 &lt;policy domain=3D&quot;coder&quot; rights=3D&quot;read|write&quot=
; pattern=3D&quot;PS3&quot; /&gt;<br>
=C2=A0 &lt;policy domain=3D&quot;coder&quot; rights=3D&quot;read|write&quot=
; pattern=3D&quot;EPS&quot; /&gt;<br>
=C2=A0 &lt;policy domain=3D&quot;coder&quot; rights=3D&quot;read|write&quot=
; pattern=3D&quot;PDF&quot; /&gt;<br>
=C2=A0 &lt;policy domain=3D&quot;coder&quot; rights=3D&quot;read|write&quot=
; pattern=3D&quot;XPS&quot; /&gt;<br>
&lt;/policymap&gt;<br>
<br>
imagemagick will work on postscript files again.<br>
<br>
=C2=A0Make sure you have Ghostscript version 9.24 or later:<br>
<a href=3D"https://www.kb.cert.org/vuls/id/332928/" rel=3D"noreferrer noref=
errer" target=3D"_blank">https://www.kb.cert.org/vuls/id/332928/</a><br>
<br>
Regards,<br>
/Karl Hammar<br>
<br>
</blockquote></div>

--000000000000ea8cd0059640aa7d--

- Raw text -


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