SetEncryptedPayloadFromFile
Security and encryption
Opis
Uloží kompletné bajty šifrovaného PDF súboru ako associated payload vybraného nešifrovaného PDF
Syntax
Delphi
Function TPDFlib.SetEncryptedPayloadFromFile(Const FileName, Subtype, PayloadVersion: WideString): Integer;ActiveX
Function PDFlib::SetEncryptedPayloadFromFile(FileName As String, Subtype As String, PayloadVersion As String) As LongDLL
int DLSetEncryptedPayloadFromFile(int InstanceID, const wchar_t* FileName, const wchar_t* Subtype, const wchar_t* PayloadVersion);Parameters
| FileName | Path to the complete encrypted PDF payload |
|---|---|
| Subtype | PDF name identifying the encryption handler, such as Standard |
| PayloadVersion | Optional PDF name identifying the handler version |
Return values
| 1 | The payload was added |
|---|---|
| 0 | The file, metadata, selected document, or wrapper state was invalid |
Remarks
The wrapper uses PDF 2.0 /EncryptedPayload, /AF, /EmbeddedFiles, and a hidden collection whose initial document is the payloadThe outer document must remain unencrypted and cannot enable PDF MAC; only one encrypted payload is permitted
See also
SetEncryptedPayloadFromString, SetEncryptedPayloadFromVariant, IsUnencryptedWrapper