I think you need to Reader Extend the form to add a watermark to a PDF
that is opened in Adobe Reader. If you don't already have it, download
a trial version of Acrobat Professional and see if you get the
security error when you open the document with that (I suspect you
won't).
If you don't get it, you need to buy a Reader Extensions license for
the document or, if you are only distributing the form to less than
500 people (see the EULA for more specific details), a copy of Acrobat
Professional will allow you to Reader Extend the form.
John.
On Apr 10, 2:18 am, "Chris Fourie" <
chrisfo...@gmail.com> wrote:
> Hi Bob,
>
> Thanks for the reply.
>
> The reason why I use code is that the text fields' fill colour are solid
> white. The form have quite a few text fields on and you can't see the whole
> image if I add it to the master page.
>
> Chris Fourie
>
> CE-mail
chrisfo...@gmail.com
> On 09/04/2008, Bob Bailey <
bbail...@gmail.com> wrote:
>
>
>
>
>
> > Is there a reason you need to do this programmatically? Could you
> > just add an image to the master page of the form?
>
> > On Apr 9, 10:37 am, Chris <
ChrisFo...@gmail.com> wrote:
> > > Hi all,
>
> > > I've place this code in the ready: layout event of the form:
>
> > > var myDoc = event.target;
> > > myDoc.addWatermarkFromText("Confidential", 0, font.Helv, 24,
> > > color.red);
>
> > > When I open the form as a PDF i receive the following error in the
> > > JavaScript Debugger:
>
> > > NotAllowedError: Security settings prevent access to this property or
> > > method.
> > > Doc.addWatermarkFromText:3:XFA:form1[0]:#subform[0]:ready
>
> > > Any ideas how to solve this?
>
> > > Regards,
>
> > > Chris Fourie- Hide quoted text -
>
> - Show quoted text -