org.pdfbox.examples.persistence

Class 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

WriteDecodedDoc()
Constructor.

Method Summary

void
doIt(String in, String out)
This will perform the document reading, decoding and writing.
static void
main(String[] args)
This will write a PDF document with completely decoded streams.

Constructor Details

WriteDecodedDoc

public WriteDecodedDoc()
Constructor.

Method Details

doIt

public void doIt(String in,
                 String out)
            throws IOException,
                   COSVisitorException
This will perform the document reading, decoding and writing.
Parameters:
in - The filename used for input.
out - The filename used for output.
Throws:
COSVisitorException - If there is an error while copying the document.

main

public static void main(String[] args)
This will write a PDF document with completely decoded streams.
see usage() for commandline
Parameters:
args - command line arguments