PdfJavaScriptStripper
Contents
[
Hide
]Inheritance: java.lang.Object
public final class PdfJavaScriptStripper
Class for removing all Java Script code.
Constructors
Constructor | Description |
---|---|
PdfJavaScriptStripper() |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
inputFile | java.lang.String | File containig the document. |
outputFile | java.lang.String | File 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:
Parameter | Type | Description |
---|---|---|
inStream | java.io.InputStream | Stream containing document. |
outStream | java.io.OutputStream | Stream where the document will be stored. |
Returns: boolean - true if JavaScript was stripped successfully.