PdfJavaScriptStripper

PdfJavaScriptStripper

Overview

PdfJavaScriptStripper is a class in Aspose.PDF FOSS for .NET.

Removes all JavaScript from a PDF document.

This class provides 4 methods for working with PdfJavaScriptStripper objects in .NET programs. Available methods include: Strip, StripJavaScript. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.

Methods

SignatureDescription
Strip(input: byte[], output: byte[])Strip all JavaScript from the PDF.
Strip(inputFile: string, outputFile: string)Strip all JavaScript from inputPath and write the result to outputPath.
Strip(inStream: Stream, outStream: Stream)Stream-based Strip overload.
StripJavaScript(doc: Document)Strip all JavaScript from a document in-place.

See Also