Where did you get the impression that you can execute JavaScript in Acrobat
using this method? You really (let me repeat that REALLY) have to read the
SDK documentation. There no no way around that. Anything that is not
described in the documentation will not work. There is only one way to
execute JavaScript using the IAC API, and that is using this call:
http://livedocs.adobe.com/acrobat_sdk/11/Acrobat11_HTMLHelp/IAC_API_Fo rmsIntro.108.45.html
However, in this case there is no need to use the executeThisJavaScript
function, you can use the JSO to add your watermark. Everything you need is
in the documentation, and as I mentioned before, there is no way around
reading and understanding the docs. You cannot just google your way through
a complex problem and try to piece together a solution based on bits and
pieces you find online. Why do I know this? Because oftentimes I get called
in after somebody tries that approach to save some money. I then get to
clean up the mess they made, and then it's not going to be cheap... And
this is one of the reasons why people are reluctant to provide code samples
in this forum.
Using a complex API as the Acrobat SDK requires you to climb a pretty steep
learning curve, and you have to spend weeks and months (and sometimes
years) reading and experimenting until you understand how things work. And
that is why it's usually cheaper and faster to hire somebody to do that
work for you.
Back to your problem. What have you tried? I only remember seeing your
call to addWatermarkFromText using just the text argument. BTW: There was
no need to start a new thread, you should have kept everything in the first
thread you started, this way everything is in one place. If you've posted
more in the other thread, then you are making it much harder for us to
provide help.
So again, what have you tried and what results have you gotten? What error
messages did the system produce? When? When you compiled the code, or when
you tried to execute it?
Karl Heinz Kremer
PDF Acrobatics Without a Net
PDF Software Development, Training and More...
On Sat, Jul 27, 2013 at 8:31 AM, I Love Mustangs