PdfStamper doesn't support interactive features, only
adding content to pages.

Best Regards,
Paulo Soares

--- 玉越 <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> addJavaScript throws NullPointerException in
> PdfDocument.addJavaScript.
> 
>         PdfReader originalPDF = new
> PdfReader("423599a_r.pdf");
>         FileOutputStream os = new FileOutputStream(
> "addJavaScript.pdf" );
>         PdfStamper stamper = new
> PdfStamper(originalPDF, os);
>         PdfWriter writer = stamper.getWriter();
>         PdfAction JSAction =
> PdfAction.javaScript("app.alert(\"foo\",
> 3);\r", writer);
>         writer.addJavaScript( JSAction );
>         stamper.close();
> 
> It can be a bug in PdfStamper.
> How can I embed a document-level JavaScript action
> into an existing PDF?
> 
> 
> 
>
-------------------------------------------------------
> This SF.NET email is sponsored by: eBay
> Great deals on office technology -- on eBay now!
> Click here:
> http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/itext-questions


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to