Interface ImagePageOutput

The convert() method will return an array of ImagePageOutput.

interface ImagePageOutput {
    content?: Buffer;
    documentName?: string;
    name?: string;
    pageIndex: number;
    path?: string;
    type: ImageType;
}

Properties

content?: Buffer

Buffer content of the image. Including the content can make the object heavy.

documentName?: string

The name of the pdf document (if not a buffer).

name?: string

The name of the image (if rendered).

pageIndex: number

The page number. Starts at 1.

path?: string

Path where the image has been rendered.

type: ImageType

Type of the image. PNG or JPEG.