We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDF files corrupted javascript stripper

Hello,


We used the code below to remove javascript code and hyperlink actions from PDF files:

PdfJavaScriptStripper stripper = new PdfJavaScriptStripper();
stripper.strip(sourceFile, destinFile);

but some files are corrupted after that. Please find below the pdf header in text as we can’t attach the file due to our client’s privacy policies.

Could you help us know why we’re having this problem?

Thank you

pdfFile

Hi Mouad,


Thanks for your inquiry. Please share your sample(Problematic) PDF document here, we will look into it and guide you accordingly.

We are sorry for the inconvenience caused.

Best Regards,

Hi,


As mentioned in my previous post I can’t share in here the document due to our client privacy policies.

So I would like to know how can I email it to you directly?

Thank you.

Hi Sana,


I emailed you the document. Please confirm receipt of my email.

Thank you.

Hi Mouad,


Thanks for your email, I have received the documents. I will test the scenario and will update you soon.

Best Regards,

Hi Mouad,


Thanks for your patience. I have tested the scenario with Aspose.Pdf for Java 1.9.0 and unable to notice the reported issues. Please download and try latest version of Aspose.Pdf for Java, it will resolve the issue.

Please feel free to contact us for any further assistance.

P.S: I have forwarded resultant PDF document via email.

Best Regards,