Set Layer Properties with JS

Advisor ,
May 29, 2018

Copy link to clipboard

Copied

I'm looking to target one layer and change it's properties to:

Default State: ON

Visibility: Always Visible

Print: Never Prints

Export: Never Export.

As pictured below.

Screen Shot 2018-05-29 at 12.53.51 PM.png

TOPICS
Acrobat SDK and JavaScript, Macintosh

Views

157

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Set Layer Properties with JS

Advisor ,
May 29, 2018

Copy link to clipboard

Copied

I'm looking to target one layer and change it's properties to:

Default State: ON

Visibility: Always Visible

Print: Never Prints

Export: Never Export.

As pictured below.

Screen Shot 2018-05-29 at 12.53.51 PM.png

TOPICS
Acrobat SDK and JavaScript, Macintosh

Views

158

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 29, 2018 0
try67 LATEST
Most Valuable Participant ,
May 29, 2018

Copy link to clipboard

Copied

A layer is represented by the OCG object in JS, which is very limited.

From what you described you can only set its initial state and current state, using the initState and state properties, respectively.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 29, 2018 0