Set specific layer to Never Print using JS

Advocate ,
Nov 09, 2017

Copy link to clipboard

Copied

What would be the best way to automate with JS for changing a specific layer in PDF to have is Print Initial State to «Never Print»? Is it possible?

TOPICS
Acrobat SDK and JavaScript, Windows

Views

151

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 specific layer to Never Print using JS

Advocate ,
Nov 09, 2017

Copy link to clipboard

Copied

What would be the best way to automate with JS for changing a specific layer in PDF to have is Print Initial State to «Never Print»? Is it possible?

TOPICS
Acrobat SDK and JavaScript, Windows

Views

152

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
Nov 09, 2017 0
Adobe Community Professional ,
Nov 09, 2017

Copy link to clipboard

Copied

The print setting, as well as many other OCG properties cannot be accessed from JavaScript.

Whenever I have to do a task like this I write a simple plug-in to perform the single task. Usually using JavaScript parameters.  Then activate the plug-in from my script with a menu item. In fact I wrote a plug-in for modifying several OCG parameters that are not available from the Acrobat UI.  You'll find it here (along with lots of other cool stuff): www.pdfscripting.com

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...
Nov 09, 2017 0
Advocate ,
Nov 09, 2017

Copy link to clipboard

Copied

Thanks Thom! Probably will need to renew my membership to it soon!

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...
Nov 09, 2017 0
Adobe Community Professional ,
Nov 09, 2017

Copy link to clipboard

Copied

Appreciate it .  We can also create a custom plug-in for your specific purpose.

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...
Nov 09, 2017 0
Adobe Community Professional ,
Nov 09, 2017

Copy link to clipboard

Copied

Please Thom, release a MacOS version.

Priere.gif

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...
Nov 09, 2017 0
Adobe Community Professional ,
Nov 09, 2017

Copy link to clipboard

Copied

unfortunately I do not have an easy way to make Mac plug-ins at this point, however, I don't use platform specific code for small plug-ins that don't have dialogs. So there is a possibility, just need to know someone with the correct compiler.

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...
Nov 09, 2017 0
Adobe Community Professional ,
Nov 09, 2017

Copy link to clipboard

Copied

Ok, maybe

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...
Nov 09, 2017 1