pdfSetStructElemTitle
Set the /T (Title) attribute on the currently-open structure
| Category | Tagged PDF / structure tree |
|---|
Purpose — Set the /T (Title) attribute on the currently-open structure element.
Description — Same current-tag targeting rule as pdfSetTagID (top of the open-tag stack, or the most-recently-registered element).
Declarations
int32_t __stdcall pdfSetStructElemTitle(PPDF IPDF, const char* Title);
int32_t __stdcall pdfSetStructElemTitleA(PPDF IPDF, const char* Title);
int32_t __stdcall pdfSetStructElemTitleW(PPDF IPDF, const wchar_t* Title);
function pdfSetStructElemTitleA(const IPDF: PPDF; Title: PAnsiChar): Integer; stdcall; external 'LumasPdf.dll';
function pdfSetStructElemTitleW(const IPDF: PPDF; Title: PWideChar): Integer; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
Title | string | New /T value for the current tag. |
Return value — 1 on success, 0 on failure (no structure elements exist yet, or the handle is invalid).
See also — pdfSetStructElemID
C# (P/Invoke)
public static extern int pdfSetStructElemTitleW(IntPtr IPDF, IntPtr Title);
public static extern int pdfSetStructElemTitle(IntPtr IPDF, IntPtr Title);
public static extern int pdfSetStructElemTitleA(IntPtr IPDF, IntPtr Title);
Setters
pdfSetStructElemTitleW
pdfSetStructElemTitle
pdfSetStructElemTitleA
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.