Package org.apache.pdfbox.tools
Class WriteDecodedDoc
- java.lang.Object
-
- org.apache.pdfbox.tools.WriteDecodedDoc
-
public class WriteDecodedDoc extends java.lang.Objectload document and write with all streams decoded.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringPASSWORDprivate static java.lang.StringSKIPIMAGES
-
Constructor Summary
Constructors Constructor Description WriteDecodedDoc()Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.StringcalculateOutputFilename(java.lang.String filename)voiddoIt(java.lang.String in, java.lang.String out, java.lang.String password, boolean skipImages)This will perform the document reading, decoding and writing.static voidmain(java.lang.String[] args)This will write a PDF document with completely decoded streams.private static voidusage()This will print out a message telling how to use this example.
-
-
-
Field Detail
-
PASSWORD
private static final java.lang.String PASSWORD
- See Also:
- Constant Field Values
-
SKIPIMAGES
private static final java.lang.String SKIPIMAGES
- See Also:
- Constant Field Values
-
-
Method Detail
-
doIt
public void doIt(java.lang.String in, java.lang.String out, java.lang.String password, boolean skipImages) throws java.io.IOExceptionThis 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.skipImages- Whether to skip decoding images.- Throws:
java.io.IOException- if the output could not be written
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionThis will write a PDF document with completely decoded streams.
see usage() for commandline- Parameters:
args- command line arguments- Throws:
java.io.IOException- if the output could not be written
-
calculateOutputFilename
private static java.lang.String calculateOutputFilename(java.lang.String filename)
-
usage
private static void usage()
This will print out a message telling how to use this example.
-
-