I have postscript file of 100 lines. I'm trying to merge 2 pdfs in to the single one with the help of ghostscript. What I want to do is, merge both pdf into one and than apply my postscript code in following manner:
1) first 50 lines of the postscript file should be applied on only page 1 of the generated pdf
2) remaining 50 lines to be applied on the 2nd page of the generated pdf.
I have used following code to do that:
gs -q -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=output.pdf test.ps pdf_1.pdf pdf_2.pdf;
I have tried showpage
option of postscript, but that insert a blank page in the generated output pdf and that's not my requirement.
Any one knows how can I do that ?