X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Message-ID: <5510C8CF.3000707@mcmahill.net> Date: Mon, 23 Mar 2015 22:15:43 -0400 From: Dan McMahill User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: geda-user AT delorie DOT com Subject: Re: [geda-user] why there is no HPGL export from gEDA PCB? References: <20150323144319 DOT c9d46242f72ac7be53e6d41e AT jcoppens DOT com> In-Reply-To: <20150323144319.c9d46242f72ac7be53e6d41e@jcoppens.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1427163348; bh=XWPTo2Bapu36ZtAqwVwiqQWcYJ5l6A+Gis5kHYG55WI=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=K5QQguTMEEAxygQ1sTYMMBW67hK9NC4iIpf0n5YbVpWpYCzzmnTZcmsKdmROJrfgs /jx3kbTPOe2evY8TM2R8JClxXdHgKHHSmFWFQFDzEiFF50vp8u9ThOXWUO24R2IMVp IAo760qEaxbIEO3fvlO1w06sWLHWRPbOWCijty+BXEwxYgfALAAfDKr9t9Cfh1xr09 SXEB70CBhLBIWvacYCFg5M9XQCLFFbmwbHOZfGPY8wDzAkw86hfsbd77PowqrKSlZM 1M90y04JGxvDjp/fFNESPlL6UPKnFo55+G9BzPHWhHCuRCj+qnLgGjfYWhnxQIt8aj onQkIMCSn+vHw== Reply-To: geda-user AT delorie DOT com On 3/23/2015 1:43 PM, John Coppens wrote: > On Mon, 23 Mar 2015 05:59:16 +0000 (UTC) > John wrote: > >> Is there any way to get HPGL from a raster file such as PS? > > PS (if that means Postscript) is a vector format, not raster. > > 'pstoedit' (http://www.pstoedit.net/) converts from postscript (and PDF) > to HPGL (and many other vector formats). > > I've used it several times for other (not PC board) conversions, and > it works very nicely. I've been somewhat surprised myself when pstoedit actually did a not too bad of a job. You may have reasonable results. The postscript that PCB produces is fairly straightforward. If you were so motivated, I'm guessing that it may not be all that bad to write an HPGL export HID for PCB. src/hid/ps/ps.{c,h} would be a good starting point. copy to src/hid/hpgl/hpgl.{c,h} and go from there. The tough part may be when it comes to polygons. For traces, those map very nicely to pen drawing. HPGL does have polygon commands but if you are driving an actual physical pen plotter, I don't know how those work or don't work. You could try the polygon mode example from http://www.isoplotec.co.jp/HPGL/eHPGL.htm#-PM%28Polygon%20Mode%29 -Dan