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?
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
Copy link to clipboard
Copied
Thanks Thom! Probably will need to renew my membership to it soon!
Copy link to clipboard
Copied
Appreciate it . We can also create a custom plug-in for your specific purpose.
Copy link to clipboard
Copied
Please Thom, release a MacOS version.
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.
Copy link to clipboard
Copied
Ok, maybe