API reference › Import & 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.
BOOL32 __stdcall pdfGetFileSpec(IFSR IFS, TPDFFileSpecEx* F);
Return value — TRUE on success; FALSE for an invalid filespec handle or a deleted slot.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Getters
pdfGetFileSpec
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.