Images

Explicit Width and Height

A 240x80 source image, rendered at its native size:

Only Width Given

The same 3:1 source, with only widthPx: 360 specified - height (120) is derived from its aspect ratio:

Only Height Given

A tall 80x160 (1:2) source, with only heightPx: 200 specified - width (100) is derived from its aspect ratio:

Loaded via a data: URI

AddImageFromBase64 accepts a full data: URI or a bare base64 payload:

Loaded From a File Path

AddImage(filePath, ...) reads straight from disk - handy for a logo or other static asset shipped alongside the report

Images

generator. This 512x512 source keeps its 1:1 aspect ratio with only widthPx given: