Class PdfEncryptedPayloadFileSpecFactory
java.lang.Object
com.itextpdf.kernel.pdf.filespec.PdfEncryptedPayloadFileSpecFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static PdfFileSpecstatic PdfFileSpeccreate(PdfDocument doc, byte[] fileStore, PdfEncryptedPayload encryptedPayload) Embed a encrypted payload to a PdfDocument.static PdfFileSpeccreate(PdfDocument doc, byte[] fileStore, PdfEncryptedPayload encryptedPayload, PdfDictionary fileParameter) Embed a encrypted payload to a PdfDocument.static PdfFileSpeccreate(PdfDocument doc, byte[] fileStore, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter) Embed a encrypted payload to a PdfDocument.static PdfFileSpeccreate(PdfDocument doc, InputStream is, PdfEncryptedPayload encryptedPayload) Embed a encrypted payload to a PdfDocument.static PdfFileSpeccreate(PdfDocument doc, InputStream is, PdfEncryptedPayload encryptedPayload, PdfName mimeType) Embed a encrypted payload to a PdfDocument.static PdfFileSpeccreate(PdfDocument doc, InputStream is, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter) Embed a encrypted payload to a PdfDocument.static PdfFileSpeccreate(PdfDocument doc, String filePath, PdfEncryptedPayload encryptedPayload) Embed a encrypted payload to a PdfDocument.static PdfFileSpeccreate(PdfDocument doc, String filePath, PdfEncryptedPayload encryptedPayload, PdfName mimeType) Embed a encrypted payload to a PdfDocument.static PdfFileSpeccreate(PdfDocument doc, String filePath, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter) Embed a encrypted payload to a PdfDocument.static Stringstatic Stringstatic PdfFileSpecwrap(PdfDictionary dictionary)
-
Constructor Details
-
PdfEncryptedPayloadFileSpecFactory
public PdfEncryptedPayloadFileSpecFactory()
-
-
Method Details
-
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 tofileStore- byte[] containing encrypted fileencryptedPayload- the encrypted payload dictionarymimeType- mime-type of the filefileParameter- 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 tofileStore- byte[] containing the fileencryptedPayload- the encrypted payload dictionaryfileParameter- 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 tofileStore- byte[] containing the fileencryptedPayload- the encrypted payload dictionary- Returns:
- PdfFileSpec containing the file specification of the encrypted payload
-
create
public static PdfFileSpec create(PdfDocument doc, String filePath, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter) throws IOException Embed a encrypted payload to a PdfDocument.- Parameters:
doc- PdfDocument to add the file tofilePath- path to the encrypted fileencryptedPayload- the encrypted payload dictionarymimeType- mime-type of the filefileParameter- Pdfdictionary containing file parameters- Returns:
- PdfFileSpec containing the file specification of the encrypted payload
- Throws:
IOException- in case of any I/O error
-
create
public static PdfFileSpec create(PdfDocument doc, String filePath, PdfEncryptedPayload encryptedPayload, PdfName mimeType) throws IOException Embed a encrypted payload to a PdfDocument.- Parameters:
doc- PdfDocument to add the file tofilePath- path to the encrypted fileencryptedPayload- the encrypted payload dictionarymimeType- mime-type of the file- Returns:
- PdfFileSpec containing the file specification of the encrypted payload
- Throws:
IOException- in case of any I/O error
-
create
public static PdfFileSpec create(PdfDocument doc, String filePath, PdfEncryptedPayload encryptedPayload) throws IOException Embed a encrypted payload to a PdfDocument.- Parameters:
doc- PdfDocument to add the file tofilePath- path to the encrypted fileencryptedPayload- the encrypted payload dictionary- Returns:
- PdfFileSpec containing the file specification of the encrypted payload
- Throws:
IOException- in case of any I/O error
-
create
public static PdfFileSpec create(PdfDocument doc, InputStream is, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter) Embed a encrypted payload to a PdfDocument.- Parameters:
doc- PdfDocument to add the file tois- stream containing encrypted fileencryptedPayload- the encrypted payload dictionarymimeType- mime-type of the filefileParameter- Pdfdictionary containing file parameters- Returns:
- PdfFileSpec containing the file specification of the encrypted payload
-
create
public static PdfFileSpec create(PdfDocument doc, InputStream is, PdfEncryptedPayload encryptedPayload, PdfName mimeType) Embed a encrypted payload to a PdfDocument.- Parameters:
doc- PdfDocument to add the file tois- stream containing encrypted fileencryptedPayload- the encrypted payload dictionarymimeType- mime-type of the file- Returns:
- PdfFileSpec containing the file specification of the encrypted payload
-
create
public static PdfFileSpec create(PdfDocument doc, InputStream is, PdfEncryptedPayload encryptedPayload) Embed a encrypted payload to a PdfDocument.- Parameters:
doc- PdfDocument to add the file tois- stream containing encrypted fileencryptedPayload- the encrypted payload dictionary- Returns:
- PdfFileSpec containing the file specification of the encrypted payload
-
wrap
-
generateDescription
-
generateFileDisplay
-
addEncryptedPayloadDictionary
-