Skip to content
Lamina PDF
0.9.0
GitHub
Open the web app

ExtractedImage

type ExtractedImage = ExtractedImageJs & object;

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

One image a document draws, as a file: format "jpeg" or "jpeg2000" as stored, byte for byte, or "png" decoded with its /Decode, colour space and mask; data holds the file’s bytes and extension its usual extension. kind is "image", "stencil" (an image mask: painted black, the rest white), or "softMask" / "mask": the mask of a JPEG or JPEG 2000 image, which that file can’t hold. page is the first page (0-based) that draws it, object its object number (absent for an inline image), and colorSpace its family as pdfimages -list names it.

data: Uint8Array<ArrayBuffer>;

0.4.0