Class WriteDecodedDoc


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

      Fields 
      Modifier and Type Field Description
      private static java.lang.String PASSWORD  
      private static java.lang.String SKIPIMAGES  
    • Constructor Summary

      Constructors 
      Constructor Description
      WriteDecodedDoc()
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • 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​(java.lang.String in,
                         java.lang.String out,
                         java.lang.String password,
                         boolean skipImages)
                  throws java.io.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:
        java.io.IOException - if the output could not be written
      • main

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

        private static java.lang.String calculateOutputFilename​(java.lang.String filename)
      • usage

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