Answered
Anyone know how to programmatically set a PDF layer's initial state visibility to "Visible When On"?
I'm using the following code to add the layers:
this.addWatermarkFromFile(
{
cDIPath : "/C/Users/Wiz/Temp/Begin.pdf",
bOnTop : true,
bOnScreen : true,
bOnPrint : false,
});
Setting bOnScreen to true results in "Always Visible" and setting it to false results in "Never Visible". Questoin is, ow do I set it to "Visible When On" using script?
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script