Appearance
zeropdf / TemplateImageBlock
Interface: TemplateImageBlock
Defined in: src/types.ts:1588
Template block for rendering a PNG, JPEG, BMP, JBIG2, TIFF, or JPEG2000 image.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
class? | string | readonly string[] | Stylesheet class name(s) applied beneath inline options. | src/types.ts:1596 |
data | BinaryData | Binary data for the image, font, PDF, or attachment. | src/types.ts:1592 |
keepWithNext? | boolean | Whether this block should stay on the same page as the following block when possible. | src/types.ts:1598 |
options? | FlowImageOptions | Options that control this item. | src/types.ts:1594 |
type | "png" | "jpeg" | "bmp" | "jbig2" | "tiff" | "jp2" | "webp" | "gif" | "svg" | Discriminator identifying this option or command shape. | src/types.ts:1590 |