Package org.apache.pdfbox
Class WriteDecodedDoc
- java.lang.Object
-
- org.apache.pdfbox.WriteDecodedDoc
-
public class WriteDecodedDoc extends java.lang.Object
load document and write with all streams decoded.- Version:
- $Revision: 1.8 $
- Author:
- Michael Traut
-
-
Constructor Summary
Constructors Constructor Description WriteDecodedDoc()
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
doIt(java.lang.String in, java.lang.String out)
Deprecated.usedoIt(String, String, String, boolean)
instead.void
doIt(java.lang.String in, java.lang.String out, java.lang.String password, boolean useNonSeqParser)
This will perform the document reading, decoding and writing.static void
main(java.lang.String[] args)
This will write a PDF document with completely decoded streams.
-
-
-
Method Detail
-
doIt
public void doIt(java.lang.String in, java.lang.String out) throws java.io.IOException, COSVisitorException
Deprecated.usedoIt(String, String, String, boolean)
instead.This will perform the document reading, decoding and writing.- Parameters:
in
- The filename used for input.out
- The filename used for output.- Throws:
java.io.IOException
- If there is an error parsing the document.COSVisitorException
- If there is an error while copying the document.
-
doIt
public void doIt(java.lang.String in, java.lang.String out, java.lang.String password, boolean useNonSeqParser) throws java.io.IOException, COSVisitorException
This will perform the document reading, decoding and writing.- Parameters:
in
- The filename used for input.out
- The filename used for output.password
- The password to open the document.useNonSeqParser
- use the non sequential parser- Throws:
java.io.IOException
- If there is an error parsing the document.COSVisitorException
- If there is an error while copying the document.
-
main
public static void main(java.lang.String[] args)
This will write a PDF document with completely decoded streams.
see usage() for commandline- Parameters:
args
- command line arguments
-
-