API referenceDigital Signatures

pdfGetInIsSigned

Report whether the currently open import source

C
int32_t __stdcall pdfGetInIsSigned(PPDF IPDF);
Delphi
function pdfGetInIsSigned(const IPDF: PPDF): Integer; stdcall;

Purpose. Report whether the currently open import source document has been digitally signed — an In-prefixed import-inspection getter, following the same convention documented repeatedly elsewhere (pdfGetInFieldCount Field Lifecycle and Enumeration, pdfGetInIsXFAForm XFA Form Fields): it inspects the separate FImportSrc document, not the live document being edited.

Description. Guarded by HasImportFile; returns NO_IMPORT_ERR (-1073742011) if no import file is open. Otherwise checks two independent signals on the import source: the AcroForm /SigFlags bit 0 (SignaturesExist), or the presence of a document-level /Perms entry (used for certification/usage-rights signatures) — either one alone is sufficient to report "signed."

Parameters.

ParameterDescription
IPDFDocument handle (whose *import source* is inspected).

Return value. 1 if either signal indicates the import source is signed; 0 if neither; NO_IMPORT_ERR if no import file is open.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetInIsSigned(IntPtr IPDF);
Area
Digital Signatures
Category

Getters

Exported names

pdfGetInIsSigned

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.