pdf/src/main/java/se/idsec/signservice/integration/document/pdf/utils/PDDocumentUtils.java
public static void close(final PDDocument document) {
    if (document != null) {
      try {
        document.close();
      }
      catch (IOException e) {
        log.warn("Failed to close PDDocument object", e);
      }
    }
  }
/**
   * Closes an open {@link PDDocument} object and releases its allocated resources.
   * 
   * @param document
   *          the document to close
   */
Closes an open  PDDocument object and releases its allocated resources.

@param document
the document to close
Closes an open PDDocument object and releases its allocated resources . @param document the document to close
public static void close(final PDDocument document) {
    if (document != null) {
      try {
        document.close();
      }
      catch (IOException e) {
        log.warn("Failed to close PDDocument object", e);
      }
    }
  }
public static void close ( final PDDocument document ) { if ( document != null ) { try { document . close ( ) ; } catch ( IOException e ) { log . warn ( "Failed to close PDDocument object" , e ) ; } } }
Closes an open {@link PDDocument} object and releases its allocated resources.
Closes an open { @link PDDocument } object and releases its allocated resources .