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 to
fileStore
- byte[] containing encrypted file
encryptedPayload
- the encrypted payload dictionary
mimeType
- mime-type of the file
fileParameter
- Pdfdictionary containing file parameters
public static PdfFileSpec create(PdfDocument doc, byte[] fileStore, PdfEncryptedPayload encryptedPayload, PdfDictionary fileParameter)
doc
- PdfDocument to add the file to
fileStore
- byte[] containing the file
encryptedPayload
- the encrypted payload dictionary
fileParameter
- Pdfdictionary containing file parameters
public static PdfFileSpec create(PdfDocument doc, byte[] fileStore, PdfEncryptedPayload encryptedPayload)
doc
- PdfDocument to add the file to
fileStore
- byte[] containing the file
encryptedPayload
- the encrypted payload dictionary
public static PdfFileSpec create(PdfDocument doc, String filePath, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter) throws IOException
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
IOException
public static PdfFileSpec create(PdfDocument doc, String filePath, PdfEncryptedPayload encryptedPayload, PdfName mimeType) throws IOException
doc
- PdfDocument to add the file to
filePath
- path to the encrypted file
encryptedPayload
- the encrypted payload dictionary
mimeType
- mime-type of the file
IOException
public static PdfFileSpec create(PdfDocument doc, String filePath, PdfEncryptedPayload encryptedPayload) throws IOException
doc
- PdfDocument to add the file to
filePath
- path to the encrypted file
encryptedPayload
- the encrypted payload dictionary
IOException
public static PdfFileSpec create(PdfDocument doc, InputStream is, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter)
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
public static PdfFileSpec create(PdfDocument doc, InputStream is, PdfEncryptedPayload encryptedPayload, PdfName mimeType)
doc
- PdfDocument to add the file to
is
- stream containing encrypted file
encryptedPayload
- the encrypted payload dictionary
mimeType
- mime-type of the file
public static PdfFileSpec create(PdfDocument doc, InputStream is, PdfEncryptedPayload encryptedPayload)
doc
- PdfDocument to add the file to
is
- stream containing encrypted file
encryptedPayload
- the encrypted payload dictionary
public static PdfFileSpec wrap(PdfDictionary dictionary)
public static String generateDescription(PdfEncryptedPayload ep)
public static String generateFileDisplay(PdfEncryptedPayload ep)
Copyright © 1998–2020 iText Group NV. All rights reserved.