PdfCopy.addJavaScript() should work.

Paulo

> -----Original Message-----
> From: Zoran Avtarovski [mailto:zo...@sparecreative.com] 
> Sent: Friday, September 04, 2009 2:18 PM
> To: Post all your questions about iText here
> Subject: [iText-questions] PdfCopy and javascript
> 
> I've noticed what might be an oversight in the code with 
> regards to adding javascript to documents when using PdfCopy 
> to create the documents.
> 
> The PdfAction class has method signatures to add javascript 
> when using a PdfWriter, public static PdfAction 
> javaScript(String code, PdfWriter writer, boolean unicode) or 
> public static PdfAction javaScript(String code, PdfWriter writer).
> 
> But there isn't one for using PdfCopy, since PdfCopy extends 
> PdfWriter it looks rather trivial to add a javascript method 
> with a PdfCopy argument.
> 
> If it is the case can I make a feature request that this be 
> included as it would save us from verbosely applying the 
> PdfAction javascript method with PdfCopy.
> 
> Z.   
> 

Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to