I need to change the page numbers in postscript files so that when distilled the pdf starts at my requested page number rather than 1 - this happens on many files so is impractical to do in Acrobat. I can output my required start page number in the postscript, but need to know the syntax for the postscript code to make it work.
Settting the start page number of a pdf in Acrobat to '123' and saving as postscript shows the addition of the following code:
PDF /docinitialize get exec %%Page: 123 1
And changing 123 to whatever and redistilling does then result in a pdf with the correct start page. However, outputting a new postscript and simply changing:
%%Page: 1 1
to:
PDF /docinitialize get exec %%Page: 123 1
gives me a distiller error: OffendingCommand: PDF
So clearly there are other things in the postscript which need amending.
Any ideas anyone?
Thanks
Tweebz
Settting the start page number of a pdf in Acrobat to '123' and saving as postscript shows the addition of the following code:
PDF /docinitialize get exec %%Page: 123 1
And changing 123 to whatever and redistilling does then result in a pdf with the correct start page. However, outputting a new postscript and simply changing:
%%Page: 1 1
to:
PDF /docinitialize get exec %%Page: 123 1
gives me a distiller error: OffendingCommand: PDF
So clearly there are other things in the postscript which need amending.
Any ideas anyone?
Thanks
Tweebz