Disable Script in existing pdf

Hey,

Is it possible to disable (preferebly completely remove ...) scripts and / or events in an existing pdf file, using your product ?

Best regards,

Kobi Hikri


This message was posted using Aspose.Live 2 Forum

Hi Kobi,

I’m sorry to inform you that currently Aspose.Pdf.Kit doesn’t allow you to remove all the Javascript from the PDF file. You can only remove Javascript from a field using RemoveFieldAction
method. However, this requirement is logged as
PDFKITNET-10565 in our issue tracking system. You’ll be updated via this forum thread once we support this feature.

We’re sorry for the inconvenience.
Regards,

Hey Latif,

Just to clarify: my questions are due to security issues regarding javascript in pdf documents. The scenario I need to support:

1. Get Pdf file from party a.

2. Send the file to party b.

Now, I wish to avoid javascript attacks by party a, on party b.

Does your prodcut address the issue I presented in any way (even in a "workaround kind of" way) ? Can it be done with aspose.pdf or aspose.pdf.kit ?

Best regards,

Kobi Hikri.

Hi Kobi,

I’m sorry to inform you that, right now, we can’t provide a workaround for this issue. I think once we support the complete removal of Javascript from a PDF file, this will help you avoid any security risk due to the Javascript.

We’re sorry for the inconvenience.
Regards,

The issues you have found earlier (filed as 10565) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(2)