API reference › Import & Output APIs
pdfGetRelFileNode
Read the related-file (associated file) node of an attachment
Purpose — Read the related-file (associated file) node of an attachment that carries an /AFRelationship.
Description — Only available when pdfGetEmbeddedFile returned a non-NULL IRelNode. Fills NameA/NameW and the embedded-file size (F.EF.BufSize); NextNode is always NULL (one related file per attachment in this engine).
C
BOOL32 __stdcall pdfGetRelFileNode(IRFN IRF, TPDFRelFileNode* F, BOOL32 Decompress);
Return value — TRUE on success; FALSE for an invalid handle.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Import & Output APIs
Category
Getters
Exported names
pdfGetRelFileNode
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.