There is no way to change the value of that preference from scripting - since 
the script would be disabled, it would never run.

Your client will need to choose what they want.

And this is why disabling JavaScript is NOT a good thing - there are actual, 
real-world, uses for it.

Leonard

From: pavan kumar [mailto:[email protected]]
Sent: Friday, April 30, 2010 11:43 AM
To: [email protected]
Subject: [iText-questions] Javascript Disable issue

Hi,

In our application we are using iText to create PDF and print by adding 
javascript. Currently due to security reasons one of my client disabling 
javascript in PDF and requesting to provide print functionality for the PDF 
where the javascript is disabled. Does iText provide any API to enable 
javascript and disable javascript ? (I did see PdfViewerPreferences to set and 
get preferences but there is no preference related javascript),  So that in our 
application we can enable javascript before print and disable after print.If 
not is there anyway to print PDF using iText without adding javascript. Please 
let me know.

Thanks
Pavana Kumar Bellala.
------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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