public class WriteDecodedDoc
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
PASSWORD |
private static java.lang.String |
SKIPIMAGES |
Constructor and Description |
---|
WriteDecodedDoc()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
calculateOutputFilename(java.lang.String filename) |
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.
|
private static void |
usage()
This will print out a message telling how to use this example.
|
private static final java.lang.String PASSWORD
private static final java.lang.String SKIPIMAGES
public void doIt(java.lang.String in, java.lang.String out, java.lang.String password, boolean skipImages) throws java.io.IOException
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.java.io.IOException
- if the output could not be writtenpublic static void main(java.lang.String[] args) throws java.io.IOException
args
- command line argumentsjava.io.IOException
- if the output could not be writtenprivate static java.lang.String calculateOutputFilename(java.lang.String filename)
private static void usage()