Hi runew,
do you want the document start with a different page number?
Hi Loic,
InDesign CS3 has no property startPageNumber with documentPreferences .
Example for CS3 (the screenshot is showing InDesign CS3):
Document starts with page number 5.
You want to start with page number 3.
Code for that:
// Number to decrement:
var nDecrement = 2;
// pageNumberStart for a section is only valid, when continueNumbering is set to false
app.documents[0].sections[0].continueNumbering = false;
var myCurrentNumber = app.documents[0].sections[0].pageNumberStart;
if(myCurrentNumber>nDecrement+1)
{
app.documents[0].sections[0].pageNumberStart = myCurrentNumber - nDecrement
};
If there is more than one section in the document, you have to add code.
See the DOM discription for CS3 and other InDesign versions here:
Indesign JavaScript Help
Uwe