[GRLUG] Split multiplage postscript into individual pages

John J Foerch jjfoerch at earthlink.net
Wed May 7 13:18:02 EDT 2008


Godwin writes:
 > So, the goal is to take a 500 or so page PS file and split it into 500
 > individual pages.  I know, you're thinking "dude, easy!  Just type
 > this:
 > 
 > gs -r600 -sDEVICE=pswrite -sOutputFile=outfile_%03d.ps -dNOPAUSE
 > inputfile.ps -c quit
 > 
 > and voila!"
 > 
 > Yeah, but the output is "binary" postscript not "text", so I lose the
 > ability to search for strings like "John Doe".  Does anyone know how
 > to split to "text" PS and keep layout/form?
 > 
 > thanks,
 > G-

If you convert your ps to pdf, you can use pdftk:

  pdftk in.pdf burst

-- 
John Foerch


More information about the grlug mailing list