PdfJavaScriptStripper

Inheritance: java.lang.Object

public final class PdfJavaScriptStripper

Class for removing all Java Script code.

Constructors

ConstructorDescription
PdfJavaScriptStripper()

Methods

MethodDescription
strip(String inputFile, String outputFile)Remove Java Script from document.
strip(InputStream inStream, OutputStream outStream)Remove Java Script from the document.

PdfJavaScriptStripper()

public PdfJavaScriptStripper()

strip(String inputFile, String outputFile)

public boolean strip(String inputFile, String outputFile)

Remove Java Script from document.

Parameters:

ParameterTypeDescription
inputFilejava.lang.StringFile containig the document.
outputFilejava.lang.StringFile where document will be stored.

Returns: boolean - true if JavaScript was stripped successfully.

strip(InputStream inStream, OutputStream outStream)

public boolean strip(InputStream inStream, OutputStream outStream)

Remove Java Script from the document.

Parameters:

ParameterTypeDescription
inStreamjava.io.InputStreamStream containing document.
outStreamjava.io.OutputStreamStream where the document will be stored.

Returns: boolean - true if JavaScript was stripped successfully.