API referenceImport & Output APIs

pdfGetFileSpec

Read an attachment's filespec (file name + /AFRelationship)

Purpose — Read an attachment's filespec (file name + /AFRelationship) through the filespec handle minted by pdfGetEmbeddedFile.

Description — Fills FileName and AFRelationship (empty string when the file is not associated). ColItem is always NULL — collection-item data is read through the collection APIs instead.

C
BOOL32 __stdcall pdfGetFileSpec(IFSR IFS, TPDFFileSpecEx* F);

Return valueTRUE on success; FALSE for an invalid filespec handle or a deleted slot.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Import & Output APIs
Category

Getters

Exported names

pdfGetFileSpec

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.