ImageInfo
Overview
ImageInfo is a class in Aspose.PDF FOSS for TypeScript.
A single embedded image XObject: a live, read-only handle over its stream.
This class declares 4 methods for ImageInfo objects in TypeScript programs.
Available methods include: Decode, Remove, Replace, constructor.
All public members are accessible to any TypeScript application after installing the Aspose.PDF FOSS for TypeScript package.
Properties: Bits, ColorSpace, Dict, Filter, Height, RawData, and 4 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Dict | PdfDict | Read | Gets the dict. |
Stream | PdfStream | Read | Gets the stream. |
Width | number | Read | Gets the width. |
Height | number | Read | Gets the height. |
Bits | number | Read | Gets the bits. |
ColorSpace | string | Read | Gets the color space. |
Filter | string | undefined | Read | Gets the filter. |
RawData | Uint8Array | Read | Gets the raw data. |
names | : string[] | Read | Gets the names. |
parms | : (PdfDict | undefined)[] | Read | Gets the parms. |
Methods
| Signature | Description |
|---|---|
constructor(doc: Document, Name: string, stream: PdfStream, page: Page) | Calls constructor(doc, Name, stream, page) on this ImageInfo instance. |
Decode() → Uint8Array | Decoded bytes. |
Replace(data: Uint8Array, opts: ReplaceImageOptions) | Swap this image’s picture for data (JPEG, PNG, BMP or TIFF), keeping its placement on the page. |
Remove(opts: RemoveImageOptions) | Drop this image from the page this handle came from: every draw of it in the page’s content (including inside Form XObjects) and its /XObject resource entry. |