Hi
I want to remove JS from a PDF document. I tested the javaStriper.Strip() function and It works fine. Is there a way to do this using Aspose.Pdf.Document? (not through Aspose.Pdf.Facades.PdfJavaScriptStripper).
Thanks
Tali.
Hi Tali,
Thanks for your inquiry. I am afraid there is not a single method/procedure to clear JavaScript entries of whole PDF document in Aspose.Pdf.Document. You can iterate through the objects i.e. form fields and clear the clear the events(Action) of the fields. But for the moment we recommend to use PdfJavaScriptStripper object to remove JavaScript entries of whole document once, it is more reliable and efficient.
However we have logged an enhancement ticket PDFNEWNET-38670 in our issue tracking system to implement a single method to remove the JavaScript from the PDF document, in new DOM. We will keep you updated about the issue resolution progress.
Best Regards,
Hi
Can you please give an example of how iterate through the form fields and clear the clear the events(Action) of the fields?
Thanks
Hi Tali,
Thanks for your feedback. I have noticed the removing action is malfunctioning, so logged a ticket PDFNEWNET-38674 for rectification. We will keep you updated about the issue resolution progress.
We are sorry for the inconvenience caused.
Best Regards,