C
BOOL32 __stdcall pdfSetTemplBBox(PPDF IPDF, uint32_t Handle, TPageBoundary Boundary, TPDFRect* BBox);
Delphi
function pdfSetTemplBBox(const IPDF: PPDF; Handle: Cardinal; Boundary: TPageBoundary; BBox: PPDFRect): LongBool; stdcall;
Purpose. Change an existing template's bounding box.
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
Handle | Template handle. |
Boundary | Passed through as an ordinal (Ord(Boundary)) to SetTemplBBoxH — this chapter did not independently re-verify whether templates support the same 5-box-kind distinction as pages (Page Lifecycle and Geometry) or whether only one box kind is meaningful for a template (which, unlike a page, has no Crop/Bleed/Trim/Art concept in the PDF spec — only a single /BBox) — treat Boundary as likely vestigial for templates. |
BBox | The new box. |
Return value. True if Handle resolves; False otherwise.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Core SDK
Category
Setters
Exported names
pdfSetTemplBBox
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.