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

Free Support Forum - aspose.com

Aspose.PDF - Find whether an uploaded file has embedded JavaScript code or not

Hi,
I am using PDFJavaScriptStripper.Strip feature of Aspose.PDF.Facades to remove all the Javascript code embedded in a document while converting it to a PDF document

  1. Is there any way in Aspose to determine whether the document has any JavaScript code embedded at all or not?
  2. The Strip method which takes an input stream and produces an output stream increases the size of the output stream by 4 times. Is there a way to prevent this?
    Please provide an update as I want to purchase this license if it solves the above problems.
    Thanks

@kdaga

Thank you for contacting support.

We are afraid embedded JavaScript may not be detected with Aspose.PDF for .NET API, at the moment. However, a feature request with ID PDFNET-45666 has been logged in our issue management system for further investigations and resolution.

Moreover, would you please share a code snippet along with source and generated files so that we may try to reproduce and investigate increased size problem to help you out.

Do you have any update on the ID PDFNET-45666? Is there a way to find whether the document has any JavaScript code embedded at all or not?

@kdaga

We are afraid PDFNET-45666 is pending for investigations owing to previously logged tickets. It will be scheduled on its due turn which may take some months. We will let you know as soon as some significant updates will be available.

However, we also offer Paid Support, where issues are used to be investigated with higher priority. Our customers, who have paid support subscription, report their issue there which are meant to be investigated urgently. In case your reported issue is a blocker, you may please consider subscribing for Paid Support. For further information, please visit Paid Support FAQs.