Mail Archives: geda-user/2023/10/18/04:55:08
Girvin Herr:
> On 10/17/23 14:43, karl AT aspodata DOT se [via geda-user AT delorie DOT com] wrote:
...
> > but there is a ref. on the file format:
> > https://xcircuit.sourceforge.net/postscript.html
...
> In general, this is true. PostScript and PDF are vector-based formats.
> That is what I thought too. However, in my experience, I discovered that
> PDF files and maybe by association, PostScript files, can have
> bit-mapped images enclosed. My project was to convert a downloaded PDF
> image of a part to DXF for inclusion into a QCAD drawing I was working
> on. Running the file through pstoedit did not produce anything usable,
> because pstoedit will not convert bit-maps. That was when I discovered
> to my surprise the image I wanted from the PDF file was a bit-map. I
> then tried potrace on the file, but it produced a mess - a bunch of tiny
> little vectors, and I felt it would be quicker to redraw the part in
> QCAD than to edit the mess to something usable. So beware.
This isn't about generic ps files, xcircuit is able to read what it writes
because it uses it's own conventions, see the above site.
E.g here is Xcircuits version of a ltc490 symbol:
/LTC490 {
% 0 0 416 384 bbox
(?) 1 beginparm
0 1.00 0 0 0 384 416 384 416 0 4 polygon
(RS422) {/Helvetica cf} 2 21 0 1.00 192 176 label
(Transciever) {/Helvetica cf} 2 21 0 1.00 208 128 label
(LTC490) {/Helvetica-Bold cf} 2 21 0 1.00 192 256 label
(Vcc) {/Helvetica cf} 2 20 0 1.00 16 336 label
(R) {/Helvetica cf} 2 20 0 1.00 16 240 label
(D) {/Helvetica cf} 2 20 0 1.00 16 144 label
(GND) {/Helvetica cf} 2 20 0 1.00 16 48 label
(Y) {/Helvetica cf} 2 23 0 1.00 400 48 label
(Z) {/Helvetica cf} 2 23 0 1.00 400 144 label
(B) {/Helvetica cf} 2 23 0 1.00 400 240 label
(A) {/Helvetica cf} 2 23 0 1.00 400 336 label
sce
mark v1 (pcb:U) {/Helvetica cf} ctmk 21 0 1.00 208 80 infolabel
1.000 0.000 0.000 scb
(1) {/Helvetica cf} 2 23 0 1.00 0 336 pinlabel
(2) {/Helvetica cf} 2 23 0 1.00 0 240 pinlabel
(3) {/Helvetica cf} 2 23 0 1.00 0 144 pinlabel
(4) {/Helvetica cf} 2 23 0 1.00 0 48 pinlabel
(5) {/Helvetica cf} 2 20 0 1.00 416 48 pinlabel
(6) {/Helvetica cf} 2 20 0 1.00 416 144 pinlabel
(7) {/Helvetica cf} 2 20 0 1.00 416 240 pinlabel
(8) {/Helvetica cf} 2 20 0 1.00 416 336 pinlabel
endgate
} def
which shouldn't be that hard to convert to geda file format.
Regards,
/Karl Hammar
- Raw text -