Manipulate PDFs with gostscript
Basic Usage Convert PostScript to PDF: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=fileout.pdf filein.ps Merge/combine PDF and/or PostScript files: gs -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=fileout.pdf \ filein.ps filein2.pdf Extract a page from a PostScript or a PDF document: gs -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dFirstPage=3 -dLastPage=3 \ -sOutputFile=fileout.pdf filein.ps Additional Options PDF optimization level selection… Read More »