I had occasion to take a multi-page pdf or ps and separate it to smaller bits that could be emailed in chunks and I used this. I chose "%2d" to make the numbering so that it looked pretty and sorted right ( Just my horrible eccentricity ). "-dNOPAUSE" guess what that does. I don't think it needs much more explanation. For the sake of somebody Googling I say " print each page separately on Linux , print pdf pages one to a page Linux, print to file using Ghostscript separate pages Linux, how to, command line , shell script."
man gs gs -sDEVICE=jpeg -sOutputFile=page-%2d.jpg -dBATCH -dNOPAUSE manypages.ps
0 comments:
Post a Comment