com.pdfunit.tools

## Class ExtractSignatureInfo

- java.lang.Object
- - com.pdfunit.tools.UtilityBase
  - - com.pdfunit.tools.ExtractSignatureInfo

-     @DoNotObfuscate
      public class ExtractSignatureInfo
      extends UtilityBase

  This utility extracts data about signatures and certificates of a pdf document to a file in XML format.

  When you start the program without parameters, a usage message will show you the commandline parameters.

  Since:
    2016.05
  Author:
    Carsten Siedentop, April 2016

- - ### Field Summary

    - ### Fields inherited from class com.pdfunit.tools.UtilityBase

      `EMPTY_STRING, OUTPUT_PATH`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ExtractSignatureInfo(java.lang.String[] args)` Extract all signature infos of a pdf document as XML to a file.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | `checkArguments(java.lang.String[] args)`
    `static void` | `main(java.lang.String[] args)` Extract all signature infos of a pdf document as XML to a file.
    `protected void` | `parseArguments(java.lang.String[] args)`

    - ### Methods inherited from class com.pdfunit.tools.UtilityBase

      `appendTrailingSlash, assertIsDirectory, checkArguments, createSourceBaseName, createUTF8Writer, isDirectory, showUsage, writeToFile`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ExtractSignatureInfo

          public ExtractSignatureInfo(java.lang.String[] args)
                               throws java.lang.Exception

      Extract all signature infos of a pdf document as XML to a file.
      Parameters:
        `args` - args[0] pdf-source, args[1] destination-directory, args[2] password
      Throws:
        `java.lang.Exception`

  - ### Method Detail

    - #### main

          public static void main(java.lang.String[] args)
                           throws java.lang.Exception

      Extract all signature infos of a pdf document as XML to a file.

      The program does not use static fields, so you can invoke main() multiple times from a batch (unit tests).

      Parameters:
        `args` - args[0] pdf-source, args[1] destination-directory, args[2] password
      Throws:
        `java.lang.Exception`

    - #### checkArguments

          protected void checkArguments(java.lang.String[] args)
                                 throws PDFUnitInvalidProgramInvokeException

      Specified by:
        `checkArguments` in class `UtilityBase`
      Throws:
        `PDFUnitInvalidProgramInvokeException`

    - #### parseArguments

          protected void parseArguments(java.lang.String[] args)
                                 throws PDFUnitInvalidProgramInvokeException

      Specified by:
        `parseArguments` in class `UtilityBase`
      Throws:
        `PDFUnitInvalidProgramInvokeException`

Copyright (C) PDFUnit.com. See here for license.