GetEncryptMetadata

Security and signatures

Description

Returns whether the selected document encrypts XMP metadata streams when Standard security is used

For newly created documents the default is 1. For loaded encrypted documents the value reflects the document's /EncryptMetadata entry; if that entry is absent, PDF viewers treat metadata encryption as enabled

Syntax

Delphi

Function TPDFlib.GetEncryptMetadata: Integer;

ActiveX

Function PDFlib::GetEncryptMetadata() As Long

DLL

int DLGetEncryptMetadata(int InstanceID);

Return values

0Metadata streams are not encrypted when the document is saved with Standard security
1Metadata streams are encrypted when the document is saved with Standard security

Remarks

Use SetEncryptMetadata before Encrypt to change the write-side setting