SetEncryptedPayloadFromFileA

Security and encryption

Description

ANSI variant of SetEncryptedPayloadFromFile

Accepts string parameters as ANSI text and otherwise behaves identically to the wide-string entry point

Syntax

DLL

int DLSetEncryptedPayloadFromFileA(int InstanceID, const char* FileName, const char* Subtype, const char* PayloadVersion);

Return values

1The payload was added
0The 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 payload

The outer document must remain unencrypted and cannot enable PDF MAC; only one encrypted payload is permitted

See also

SetEncryptedPayloadFromString, SetEncryptedPayloadFromVariant, IsUnencryptedWrapper