API referenceCore SDK

pdfGetUseExactPwd

Set/get whether password matching during decryption must be

C
BOOL32 __stdcall pdfGetUseExactPwd(PPDF IPDF);
BOOL32 __stdcall pdfSetUseExactPwd(PPDF IPDF, int32_t Value);
Delphi
function pdfGetUseExactPwd(const IPDF: PPDF): LongBool; stdcall;
function pdfSetUseExactPwd(const IPDF: PPDF; Value: Integer): LongBool; stdcall;

Purpose. Set/get whether password matching during decryption must be byte-exact (True) or may fall back to the PDF spec's looser password-padding/truncation tolerance (False) — relevant when opening an encrypted import file or verifying an owner/user password.

Return value. Getter: the current flag; False if IPDF invalid. Setter: True if IPDF valid.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Core SDK
Category

Getters

Exported names

pdfGetUseExactPwd

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.