Skip to content
Lamina PDF
0.9.0
GitHub
Open the web app

ContentObjectSpec

type ContentObjectSpec = ContentObjectSpecJs;

Defined in: packages/sdk/src/types.ts:1993

An object to add to a page as page content: { image: { blob, crop? } } (a JPEG or PNG), { shape: { path, fill?, stroke? } } or { form: { blob, page } } (a page of a PDF, counted from 0). An image’s crop is the part of its unit square that shows, [x0, y0, x1, y1].

0.7.0