[pstricks] "Tracing" line drawings

Herbert Voss Herbert.Voss at fu-berlin.de
Sun Jun 30 21:41:57 CEST 2019



Am 29.06.19 um 02:17 schrieb Rich Shepard:
> On Fri, 28 Jun 2019, Rich Shepard wrote:
> 
>> I have several line drawings in a PDF file and need to make each one a
>> separate file. I want to do the digital equivalent of tracing the 
>> original
>> line drawing and saving the new tracing. Can this be done with PSTricks?
> 
> More information.
> 
> I converted the .pdf to PostScript using pdftops. Now I have a .ps file 
> with
> eight line drawings on it. I want to create eight separate files and
> re-create (perhaps by tracing or another approach) each one. The line 
> colors
> and text will be changed (which I can do with PSTricks) but what I don't
> know is how to accomplish the first two steps: 1) make separate .ps 
> files of
> each drawin and 2) duplicate each one modified by PSTricks.
> 
> Something new for me to learn.


You can run

pdfimages -f 1 -l 99 file.pdf .

to extract the images from the pdf (if possible).
With potrace you can convert the raster images into
PS code:

potrace -b ps -c file.pnm

creates file.ps



Herbert


More information about the PSTricks mailing list