Problems with VBA and javascript
I am a long time (mostly mainframe PL/1) programmer, now retired, and a self-taught VBA programmer. I have little experience of javascript.
I am trying to add a watermark to an existing PDF using VBA from MIcrosoft Access.
Here is a code snippet:
<-----
' This works OK
' add a form field
Set Field = jso.addField("myFormField", "text", 0, rect)
Field.Value = "Testing"
' add a watermark
' ********* This works
jso.addWatermarkFromText ("Testing text")
' ********* Below gives a syntax error - if I add ANYTHING after "Confidential"
' ********* The Acrobat API reference says this is the syntax
jso.addWatermarkFromText ("testing text", 0, font.Helv, 24, color.red)
--->
I suspect I'm missing something obvious - can anyone help?
