Interface PdfDict


public interface PdfDict
The usage of this interface permit the user to choose the underlying PDF library use to created PDF signatures.
  • Method Details

    • getAsDict

      PdfDict getAsDict(String name)
      Gets an embedded dictionary by name
      Parameters:
      name - String of a dictionary to extract
      Returns:
      PdfDict
    • getAsArray

      PdfArray getAsArray(String name)
      Gets the pdfArray by name
      Parameters:
      name - String
      Returns:
      PdfArray
    • getBinariesValue

      byte[] getBinariesValue(String name) throws IOException
      Gets binaries by dictionary name
      Parameters:
      name - String
      Returns:
      byte array
      Throws:
      IOException - if an exception occurs
    • list

      String[] list()
      Lists all encapsulated dictionary names
      Returns:
      an array of Strings
    • getStringValue

      String getStringValue(String name)
      Gets a string value by property name
      Parameters:
      name - String property name
      Returns:
      String value
    • getNameValue

      String getNameValue(String name)
      Gets a name of the dictionary
      Parameters:
      name - String property name
      Returns:
      String value
    • getDateValue

      Date getDateValue(String name)
      Gets a date
      Parameters:
      name - String property name
      Returns:
      String value
    • getNumberValue

      Number getNumberValue(String name)
      Returns a number value
      Parameters:
      name - String property name
      Returns:
      Number value
    • getObject

      Object getObject(String name)
      Returns an object
      Parameters:
      name - String property name
      Returns:
      Object value
    • getObjectNumber

      Long getObjectNumber(String name)
      Returns a number of indirect reference to an object, when applicable
      Parameters:
      name - String property name
      Returns:
      Object value
    • getStreamBytes

      byte[] getStreamBytes() throws IOException
      Returns object's stream binaries, when available
      Returns:
      byte array
      Throws:
      IOException - if a stream reading exception occurs
    • createRawInputStream

      InputStream createRawInputStream() throws IOException
      Creates a new raw input stream. NOTE: contains raw and not encoded data.
      Returns:
      InputStream
      Throws:
      IOException - if a stream reading exception occurs
    • getRawStreamSize

      long getRawStreamSize() throws IOException
      Returns a size of the raw stream, if present
      Returns:
      size of the raw stream, -1 if not applicable
      Throws:
      IOException - if a stream reading exception occurs