-
1. Re: Document Level Header Scripts
Bernd Alheit Jun 25, 2009 8:22 AM (in response to in2thecode)The name of the function is addWatermarkFromText, not addwatermarkfromtext. Read the documentation.
-
2. Re: Document Level Header Scripts
in2thecode Jun 25, 2009 9:20 AM (in response to Bernd Alheit)Classic case of being snagged by capitalization. Thanks, the error has now gone away.
Would you, or anyone else out there, know how to, or have sample code, to assign the username to a variable so that I can assign it to the footer?
Thanks again for all of your help.
-
3. Re: Document Level Header Scripts
try67 Jun 25, 2009 10:00 AM (in response to in2thecode)identity.loginName
-
4. Re: Document Level Header Scripts
in2thecode Jun 25, 2009 11:28 AM (in response to try67)Thanks. I entered that and received the following error:
NotAllowedError: Security settings prevent access to this property or method.
Identoty.loginname:2:Document-Level:AddWatermark
Can you point me in the right direction?
Thanks
-
5. Re: Document Level Header Scripts
try67 Jun 25, 2009 12:00 PM (in response to in2thecode)From the reference file:
"identity object properties are only accessible during batch, console, menu, and application initialization events to protect the privacy of the user."
So you can't access it directly from an embedded script. You need to create a safe folder-level function and then access it from your embedded script.
-
6. Re: Document Level Header Scripts
in2thecode Jun 25, 2009 12:14 PM (in response to try67)Thanks for the quick response. Here is my situation. The pdf file contains highly confidential information. I want to email it out and have the username automatically appear in the header or footer so everyone is aware of who printed the copy.
If, according to your last post, cannot assign that to the document level then must that be applied on everyone's computer? Please note that I am the only one with Professional. All users will be using the Reader only.
Thanks again for all of your assistance. It is greatly appreciated.
-
7. Re: Document Level Header Scripts
try67 Jun 25, 2009 12:17 PM (in response to in2thecode)Yes, it has to be installed on every user's computer.
And no, they don't have to have Pro. It will work with Reader as well.
-
8. Re: Document Level Header Scripts
in2thecode Jun 25, 2009 12:29 PM (in response to try67)Thanks for all of your help!
-
9. Re: Document Level Header Scripts
Bernd Alheit Jun 25, 2009 12:51 PM (in response to in2thecode)Adobe Reader can't add watermarks. And users with Acrobat can remove the watermark.



