SetCryptFilterConfiguration
Security, Attachments
Popis
Atomicky vybere, které třídy PDF objektů použijí při příštím šifrování standardní crypt filter dokumentu
Syntaxe
Delphi
Function TPDFlib.SetCryptFilterConfiguration(EncryptStrings, EncryptStreams, EncryptEmbeddedFiles: Integer): Integer;DLL
Function DLSetCryptFilterConfiguration(InstanceID, EncryptStrings, EncryptStreams, EncryptEmbeddedFiles: Integer): Integer; Stdcall;ActiveX
Function PDFlib::SetCryptFilterConfiguration(EncryptStrings As Long, EncryptStreams As Long, EncryptEmbeddedFiles As Long) As LongParametry
| EncryptStrings | 1 vybere standardní filtr pro /StrF; 0 vybere Identity |
|---|---|
| EncryptStreams | 1 volí standardní filtr pro běžné streamy přes /StmF; 0 volí Identity |
| EncryptEmbeddedFiles | 1 volí standardní filtr pro streamy vložených souborů přes /EFF; 0 volí Identity |
Return values
| 0 | A value is not zero or one, all three targets are disabled, no document is selected, or encryption has already begun |
|---|---|
| 1 | Kompletní cílová konfigurace se přijala |
Poznámky
Default je 1, 1, 1, což šifruje řetězce, běžné proudy i vložené soubory
Selective configurations require AES-128, AES-256, AES-256 Acrobat X, or AES-256-GCM and are applied consistently to password, public-key, and fingerprint encryption
Zavedená metoda SetEncryptEmbeddedFilesOnly mapuje 1 na 0, 0, 1 a 0 zpět na 1, 1, 1
Příklad
PDF.SetCryptFilterConfiguration(0, 1, 0);
PDF.Encrypt('owner-password', 'user-password', 2, Permissions);
PDF.SaveToFile('selective-encryption.pdf');Viz také
GetEncryptStrings, GetEncryptStreams, GetEncryptEmbeddedFiles, Encrypt, EncryptPublicKey