pmonta / gerber2graphtec

Cut SMT stencils from gerber files using a Graphtec cutter
Other
107 stars 55 forks source link

Plotter cut square everytime #17

Open kerivo opened 6 years ago

kerivo commented 6 years ago

Hello! I use silhouette portrait under archlinux, when i try to send anything to plotter they cut square. https://fex.net/#!571842876182 this link include photo of result and video of work, i try cut example file test_0.5mm_0402.gbr with comand python2.7 ./gerber2graphtec ./examples/test_0.5mm_0402.gbr >/dev/usb/lp0

kerivo commented 6 years ago

Try to use it on windows through g2g_gui and got same result.

kerivo commented 6 years ago

I noticed that command gerber2graphtec *.grb produced everytime same result TFGFW100FC18FY0FN1FE0TB71FAFU5088,5776FM1TB50,1FO5088&100,100,100,\0,0,Z6096,5588,L0,FX8,0!2M2286.000,508.000D3302.000,508.000D3302.000,1524.000D2286.000,1524.000D2286.000,508.000FX30,0!2M2286.000,508.000D3302.000,508.000D3302.000,1524.000D2286.000,1524.000D2286.000,508.000&1,1,1,TB50,0FO0H, Wherein tests programs runs fine ( ./tests/*.py ).

kerivo commented 6 years ago

Also _tmp_gerber.pdf contain correct image of paste pads, but _tmp_gerber.pic contain only this: .\" PIC generated by pstoedit

kerivo commented 6 years ago

Well, i try run pstoedit -f pic ./_tmp_gerber.pdf ./_tmp_gerber.pic and watch

pstoedit: version 3.70 / DLL interface 108 (built: Dec  4 2017 - release build - g++ 7.2.1 20171128 - 64-bit) : Copyright (C) 1993 - 2014 Wolfgang Glunz

 *** WARNING - the DELAYBIND command has been deprecated, and will be
               removed in the next version. For now you can restore
               the behaviour by using -dREALLYDEALYBIND but if you
               require continued use of this command you should contact
               the Ghostscript developers. Commercial customers of
               Artifex should email their support contact, free users
               are encouraged to talk to us on the #ghostscript IRC
               channel on irc.freenode.net.

Unrecoverable error: undefined in DELAYBIND
PostScript/PDF Interpreter finished. Return status 65280 executed command : /usr/bin/gs -I/home/levko/.fonts -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS "/tmp/psinhPQtd5"
The interpreter seems to have failed, cannot proceed !

Its looks like the similar trouble as @tuxedo0801

kerivo commented 6 years ago

Ok, downgrade ghostscript to 9.21 its a solution.

tuxedo0801 commented 6 years ago

Do you have a kind of best-practice recommendation for the downgrade process?

kerivo commented 6 years ago

well, i use archlinux, just do dowloand package from archive https://archive.archlinux.org/packages/g/ghostscript/