API referenceImport & Output APIs

pdfSetColDefFile

Designate an embedded file (1-based attachment handle, see

Purpose — Designate an embedded file (1-based attachment handle, see E03) as the portfolio's initial/definition document.

Description — Requires that a collection was created first (pdfCreateCollection); the handle must reference an existing attachment.

C
BOOL32 __stdcall pdfSetColDefFile(PPDF IPDF, uint32_t EmbFile);

Return valueTRUE; FALSE when no collection exists or the handle is out of range.

C# (P/Invoke)

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

Setters

Exported names

pdfSetColDefFile

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.