Class WriteDecodedDoc

java.lang.Object
org.apache.pdfbox.WriteDecodedDoc

public class WriteDecodedDoc extends Object
load document and write with all streams decoded.
Version:
$Revision: 1.8 $
Author:
Michael Traut
  • Constructor Details

    • WriteDecodedDoc

      public WriteDecodedDoc()
      Constructor.
  • Method Details

    • doIt

      public void doIt(String in, String out) throws IOException, COSVisitorException
      Deprecated.
      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.
    • doIt

      public void doIt(String in, String out, String password, boolean useNonSeqParser) 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.
      password - The password to open the document.
      useNonSeqParser - use the non sequential parser
      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