These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Page numbers

NEW-2-ADOBE
Registered: Jul 26 2007
Posts: 2

am using the header and footer feature in Acrobat 8 to try and put page numbers on a document. I want the page numbers to be on the even pages only. i select the page range for even pages only and it numbers the even pages only, but the number are 2,4,6,8,10….etc how do I make these numbers come out as 1,2,3,4,5,6……etc

My Product Information:
Acrobat Standard 8, Windows
dthanna
ExpertTeam
Registered: Sep 28 2005
Posts: 248
For this you will need to write a custom Header/Footer app in JavaScript.

I posted some sample JS out on one of the other PDF oriented sites a number of years ago (I forget where) for a page numbering batch sequence. This was before Headers/Footers were available (Acrobat 5 timeframe).

Some Google searching may turn it up. You are more than welcome to hack it to your hearts content.

Note, my code uses the user defined logical page number (what's set using the Number Pages tool in Acrobat). For what you are wanting you will have to handle the page number loop yourself - e.g.
If 0 = CardinalPage mod 2 then
PrintedPage = CardinalPage / 2
CardinalPage = CardinalPage + 2
Else
CardinalPage = CardinalPage + 1

Note: 1) CardinalPage is the absolute page number from the beginning of the document.

2) The Cardinal Page numbers start with Zero, not one. So, Cardinal Page Number 6 is the page that appears on Page 7 in the document. As I have yet to see a book, or a useful PDF, with a Page Zero, or zero pages, the original PDF Spec 1.0 developers were a asleep when thinking through this one. This issue has caused more page handling JS headaches than I can shake a stick at - hence the long diatribe.

Side note: Cardinal/Cardinality is the math term I am using here. Cardinal numbers is the set that contains Zero, as oppsed to the set of Natural Numbers, which does not contain Zero.

Not to be confused with the bird or rank/station within some religions.

I hope this helps.

Douglas Hanna is a member of the Production Print Technology team at Aon.
www.aonhewitt.com