API referenceImport & Output APIs

pdfGetEmbeddedFileNode

Read an attachment's name and size through the node handle

Purpose — Read an attachment's name and size through the node handle minted by pdfGetEmbeddedFile.

Description — Fills FileName (8-bit) / FileNameW (UTF-16) and Size. Creation/modification dates are not retained by this engine (ModDate is stamped fresh at serialization), so the date fields stay zeroed.

C
BOOL32 __stdcall pdfGetEmbeddedFileNode(IEFN IEF, TPDFEmbFileNode* F, BOOL32 Decompress);

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

Memory & buffers — The returned name pointers live in the node descriptor; they remain valid until the same node handle is read again or the document is deleted.

C# (P/Invoke)

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

Getters

Exported names

pdfGetEmbeddedFileNode

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.