Page Range Validation


good morning friends,

 

i have problem regarding page range validation.

 

i want export or selected pages pdf.

 

and page range comes text file. wrote script  follows.

 

with(app.pdfexportpreferences){

         pagerange = pagerangefile.read ();

         pagerangefile.close();

}

 

pagerangefile simple text file want read page range file , export selected pages.

if page range not valid, export pages.

     e.g document contains 5 pages , wrote 6 page range

     export pages, instead of doing validate page range , export valid pages only.

 

instead of exporting pages should give alert message "page range invalid".

 

so if know how validate page range "export intractive pdf" indesign dialog please me.

 

tahir. 

if ( pagerange > 5)

  alert ("page range invalid");



More discussions in InDesign Scripting


adobe

Comments