com.aspose.pdf.facades

Class PdfJavaScriptStripper



  • public final class PdfJavaScriptStripper
    extends Object

    Class for removing all Java Script code.

    • Constructor Detail

      • PdfJavaScriptStripper

        public PdfJavaScriptStripper()
    • Method Detail

      • strip

        public boolean strip(String inputFile,
                    String outputFile)

        Remove Java Script from document.

        Parameters:
        inputFile - File containig the document.
        outputFile - File where document will be stored.
        Returns:
        true if JavaScript was stripped successfully.
      • strip

        public boolean strip(InputStream inStream,
                    OutputStream outStream)

        Remove Java Script from the document.

        Parameters:
        inStream - Stream containing document.
        outStream - Stream where the document will be stored.
        Returns:
        true if JavaScript was stripped successfully.