FYI - I was able to fix this by using the stamper.getWriter() function and
then using the returned writer to add an open action w/JavaScript.

On 7/11/07, Jon Radon <[EMAIL PROTECTED]> wrote:

Got it.  It seems like Adobe documented the change in 7.x and then
actually made the change in 8.x.

It's interesting though that the document level script runs just fine in a
standard PDF.  EX:  I created a simple PDF with no form elements, added the
javascript using PdfStamper, and it runs without the error.  However, all my
XFA PDFs give the NotAllowedError.  Any idea why the two give different
results?

Thanks,
Jon

On 7/11/07, Leonard Rosenthol <[EMAIL PROTECTED]> wrote:
>
> You are misunderstanding...
>
> The JavaScript that you are using is calling a method that is not
> permitted at startup time in a "non-trusted document".
>
> In order to have this script run, it either needs to do so in a
> trusted function (details in the Acrobat JavaScript reference) _OR_
> you need to certify your document....
>
> Leonard
>
>
> On Jul 11, 2007, at 11:21 PM, Jon Radon wrote:
>
> > I thought so as well.  There is no security method set on the
> > document.  The security restrictions are set to "Not Allowed" for
> > the following items: Changing the Document, Document Assembly, and
> > Creation of Template Pages.
> >
> > If these restrictions are the problem, how do I go about removing
> > them?
> >
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>



--
Is it something someone said, was it something someone said?




--
Is it something someone said, was it something someone said?
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to