API referenceCore SDK

pdfSetTemplBBox

Change an existing template's bounding box.

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.

ParameterDescription
IPDFDocument handle.
HandleTemplate handle.
BoundaryPassed 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.
BBoxThe 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.