Class PdfEncryptedPayloadFileSpecFactory


  • public class PdfEncryptedPayloadFileSpecFactory
    extends java.lang.Object
    • Constructor Detail

      • PdfEncryptedPayloadFileSpecFactory

        public PdfEncryptedPayloadFileSpecFactory()
    • Method Detail

      • create

        public static PdfFileSpec create​(PdfDocument doc,
                                         byte[] fileStore,
                                         PdfEncryptedPayload encryptedPayload,
                                         PdfName mimeType,
                                         PdfDictionary fileParameter)
        Embed a encrypted payload to a PdfDocument.
        Parameters:
        doc - PdfDocument to add the file to
        fileStore - byte[] containing encrypted file
        encryptedPayload - the encrypted payload dictionary
        mimeType - mime-type of the file
        fileParameter - Pdfdictionary containing file parameters
        Returns:
        PdfFileSpec containing the file specification of the encrypted payload
      • create

        public static PdfFileSpec create​(PdfDocument doc,
                                         byte[] fileStore,
                                         PdfEncryptedPayload encryptedPayload,
                                         PdfDictionary fileParameter)
        Embed a encrypted payload to a PdfDocument.
        Parameters:
        doc - PdfDocument to add the file to
        fileStore - byte[] containing the file
        encryptedPayload - the encrypted payload dictionary
        fileParameter - Pdfdictionary containing file parameters
        Returns:
        PdfFileSpec containing the file specification of the encrypted payload
      • create

        public static PdfFileSpec create​(PdfDocument doc,
                                         byte[] fileStore,
                                         PdfEncryptedPayload encryptedPayload)
        Embed a encrypted payload to a PdfDocument.
        Parameters:
        doc - PdfDocument to add the file to
        fileStore - byte[] containing the file
        encryptedPayload - the encrypted payload dictionary
        Returns:
        PdfFileSpec containing the file specification of the encrypted payload
      • create

        public static PdfFileSpec create​(PdfDocument doc,
                                         java.lang.String filePath,
                                         PdfEncryptedPayload encryptedPayload,
                                         PdfName mimeType,
                                         PdfDictionary fileParameter)
                                  throws java.io.IOException
        Embed a encrypted payload to a PdfDocument.
        Parameters:
        doc - PdfDocument to add the file to
        filePath - path to the encrypted file
        encryptedPayload - the encrypted payload dictionary
        mimeType - mime-type of the file
        fileParameter - Pdfdictionary containing file parameters
        Returns:
        PdfFileSpec containing the file specification of the encrypted payload
        Throws:
        java.io.IOException - in case of any I/O error
      • create

        public static PdfFileSpec create​(PdfDocument doc,
                                         java.lang.String filePath,
                                         PdfEncryptedPayload encryptedPayload,
                                         PdfName mimeType)
                                  throws java.io.IOException
        Embed a encrypted payload to a PdfDocument.
        Parameters:
        doc - PdfDocument to add the file to
        filePath - path to the encrypted file
        encryptedPayload - the encrypted payload dictionary
        mimeType - mime-type of the file
        Returns:
        PdfFileSpec containing the file specification of the encrypted payload
        Throws:
        java.io.IOException - in case of any I/O error
      • create

        public static PdfFileSpec create​(PdfDocument doc,
                                         java.lang.String filePath,
                                         PdfEncryptedPayload encryptedPayload)
                                  throws java.io.IOException
        Embed a encrypted payload to a PdfDocument.
        Parameters:
        doc - PdfDocument to add the file to
        filePath - path to the encrypted file
        encryptedPayload - the encrypted payload dictionary
        Returns:
        PdfFileSpec containing the file specification of the encrypted payload
        Throws:
        java.io.IOException - in case of any I/O error
      • create

        public static PdfFileSpec create​(PdfDocument doc,
                                         java.io.InputStream is,
                                         PdfEncryptedPayload encryptedPayload,
                                         PdfName mimeType,
                                         PdfDictionary fileParameter)
        Embed a encrypted payload to a PdfDocument.
        Parameters:
        doc - PdfDocument to add the file to
        is - stream containing encrypted file
        encryptedPayload - the encrypted payload dictionary
        mimeType - mime-type of the file
        fileParameter - Pdfdictionary containing file parameters
        Returns:
        PdfFileSpec containing the file specification of the encrypted payload
      • create

        public static PdfFileSpec create​(PdfDocument doc,
                                         java.io.InputStream is,
                                         PdfEncryptedPayload encryptedPayload,
                                         PdfName mimeType)
        Embed a encrypted payload to a PdfDocument.
        Parameters:
        doc - PdfDocument to add the file to
        is - stream containing encrypted file
        encryptedPayload - the encrypted payload dictionary
        mimeType - mime-type of the file
        Returns:
        PdfFileSpec containing the file specification of the encrypted payload
      • create

        public static PdfFileSpec create​(PdfDocument doc,
                                         java.io.InputStream is,
                                         PdfEncryptedPayload encryptedPayload)
        Embed a encrypted payload to a PdfDocument.
        Parameters:
        doc - PdfDocument to add the file to
        is - stream containing encrypted file
        encryptedPayload - the encrypted payload dictionary
        Returns:
        PdfFileSpec containing the file specification of the encrypted payload
      • generateDescription

        public static java.lang.String generateDescription​(PdfEncryptedPayload ep)
      • generateFileDisplay

        public static java.lang.String generateFileDisplay​(PdfEncryptedPayload ep)