org.apache.pdfbox.examples.persistence
Class WriteDecodedDoc

java.lang.Object
  extended by org.apache.pdfbox.examples.persistence.WriteDecodedDoc

public class WriteDecodedDoc
extends 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteDecodedDoc

public WriteDecodedDoc()
Constructor.

Method Detail

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:
IOException - If there is an error parsing the document.
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


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.