Class WriteDecodedDoc

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

public class WriteDecodedDoc extends Object
load document and write with all streams decoded.
  • Field Details

  • Constructor Details

    • WriteDecodedDoc

      public WriteDecodedDoc()
      Constructor.
  • Method Details

    • doIt

      public void doIt(String in, String out, String password, boolean skipImages) throws 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:
      IOException - if the output could not be written
    • main

      public static void main(String[] args) throws IOException
      This will write a PDF document with completely decoded streams.
      see usage() for commandline
      Parameters:
      args - command line arguments
      Throws:
      IOException - if the output could not be written
    • calculateOutputFilename

      private static String calculateOutputFilename(String filename)
    • usage

      private static void usage()
      This will print out a message telling how to use this example.