Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change page numbering

Status
Not open for further replies.

tweebz

Programmer
Mar 30, 2011
1
GB
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



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top