public class PdfEncryptedPayloadFileSpecFactory extends Object
Constructor and Description |
---|
PdfEncryptedPayloadFileSpecFactory() |
Modifier and Type | Method and Description |
---|---|
static PdfFileSpec |
create(PdfDocument doc,
byte[] fileStore,
PdfEncryptedPayload encryptedPayload)
Embed a encrypted payload to a PdfDocument.
|
static PdfFileSpec |
create(PdfDocument doc,
byte[] fileStore,
PdfEncryptedPayload encryptedPayload,
PdfDictionary fileParameter)
Embed a encrypted payload to a PdfDocument.
|
static PdfFileSpec |
create(PdfDocument doc,
byte[] fileStore,
PdfEncryptedPayload encryptedPayload,
PdfName mimeType,
PdfDictionary fileParameter)
Embed a encrypted payload to a PdfDocument.
|
static PdfFileSpec |
create(PdfDocument doc,
InputStream is,
PdfEncryptedPayload encryptedPayload)
Embed a encrypted payload to a PdfDocument.
|
static PdfFileSpec |
create(PdfDocument doc,
InputStream is,
PdfEncryptedPayload encryptedPayload,
PdfName mimeType)
Embed a encrypted payload to a PdfDocument.
|
static PdfFileSpec |
create(PdfDocument doc,
InputStream is,
PdfEncryptedPayload encryptedPayload,
PdfName mimeType,
PdfDictionary fileParameter)
Embed a encrypted payload to a PdfDocument.
|
static PdfFileSpec |
create(PdfDocument doc,
String filePath,
PdfEncryptedPayload encryptedPayload)
Embed a encrypted payload to a PdfDocument.
|
static PdfFileSpec |
create(PdfDocument doc,
String filePath,
PdfEncryptedPayload encryptedPayload,
PdfName mimeType)
Embed a encrypted payload to a PdfDocument.
|
static PdfFileSpec |
create(PdfDocument doc,
String filePath,
PdfEncryptedPayload encryptedPayload,
PdfName mimeType,
PdfDictionary fileParameter)
Embed a encrypted payload to a PdfDocument.
|
static String |
generateDescription(PdfEncryptedPayload ep) |
static String |
generateFileDisplay(PdfEncryptedPayload ep) |
static PdfFileSpec |
wrap(PdfDictionary dictionary) |
public static PdfFileSpec create(PdfDocument doc, byte[] fileStore, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter)
doc
- PdfDocument to add the file tofileStore
- byte[] containing encrypted fileencryptedPayload
- the encrypted payload dictionarymimeType
- mime-type of the filefileParameter
- Pdfdictionary containing file parameterspublic static PdfFileSpec create(PdfDocument doc, byte[] fileStore, PdfEncryptedPayload encryptedPayload, PdfDictionary fileParameter)
doc
- PdfDocument to add the file tofileStore
- byte[] containing the fileencryptedPayload
- the encrypted payload dictionaryfileParameter
- Pdfdictionary containing file parameterspublic static PdfFileSpec create(PdfDocument doc, byte[] fileStore, PdfEncryptedPayload encryptedPayload)
doc
- PdfDocument to add the file tofileStore
- byte[] containing the fileencryptedPayload
- the encrypted payload dictionarypublic static PdfFileSpec create(PdfDocument doc, String filePath, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter) throws IOException
doc
- PdfDocument to add the file tofilePath
- path to the encrypted fileencryptedPayload
- the encrypted payload dictionarymimeType
- mime-type of the filefileParameter
- Pdfdictionary containing file parametersIOException
- in case of any I/O errorpublic static PdfFileSpec create(PdfDocument doc, String filePath, PdfEncryptedPayload encryptedPayload, PdfName mimeType) throws IOException
doc
- PdfDocument to add the file tofilePath
- path to the encrypted fileencryptedPayload
- the encrypted payload dictionarymimeType
- mime-type of the fileIOException
- in case of any I/O errorpublic static PdfFileSpec create(PdfDocument doc, String filePath, PdfEncryptedPayload encryptedPayload) throws IOException
doc
- PdfDocument to add the file tofilePath
- path to the encrypted fileencryptedPayload
- the encrypted payload dictionaryIOException
- in case of any I/O errorpublic static PdfFileSpec create(PdfDocument doc, InputStream is, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter)
doc
- PdfDocument to add the file tois
- stream containing encrypted fileencryptedPayload
- the encrypted payload dictionarymimeType
- mime-type of the filefileParameter
- Pdfdictionary containing file parameterspublic static PdfFileSpec create(PdfDocument doc, InputStream is, PdfEncryptedPayload encryptedPayload, PdfName mimeType)
doc
- PdfDocument to add the file tois
- stream containing encrypted fileencryptedPayload
- the encrypted payload dictionarymimeType
- mime-type of the filepublic static PdfFileSpec create(PdfDocument doc, InputStream is, PdfEncryptedPayload encryptedPayload)
doc
- PdfDocument to add the file tois
- stream containing encrypted fileencryptedPayload
- the encrypted payload dictionarypublic static PdfFileSpec wrap(PdfDictionary dictionary)
public static String generateDescription(PdfEncryptedPayload ep)
public static String generateFileDisplay(PdfEncryptedPayload ep)
Copyright © 1998–2023 Apryse Group NV. All rights reserved.