Package org.apache.pdfbox.tools
Class WriteDecodedDoc
- java.lang.Object
-
- org.apache.pdfbox.tools.WriteDecodedDoc
-
public class WriteDecodedDoc extends java.lang.Object
load document and write with all streams decoded.- Author:
- Michael Traut
-
-
Constructor Summary
Constructors Constructor Description WriteDecodedDoc()
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doIt(java.lang.String in, java.lang.String out, java.lang.String password, boolean skipImages)
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, java.lang.String password, boolean skipImages) throws java.io.IOException
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.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.IOException
This 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
-
-