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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript to hide a spec. layer in a layered PDF document

Status
Not open for further replies.

ElaineL

Technical User
May 15, 2008
1
0
0
US
Hello all, I am a newbie to Javascript and am trying to turn off a specific layer in a number of layered PDF files. Here is the script I have started but I continue to get syntac errors and do not know enough about scripting to figure it out. I hope someone can help me. Thank you!

Elaine



if(this.inc == null){
// Initialize layer state
FindOCG("CA_Stds").state = false;

// Initialize Counter Variable
this.inc = -1;
}



This is the error I receive.

SyntaxError: syntax error
1:Console:Exec
undefined
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top