pdf-raster

API reference

Inputs, options, outputs, and stable error codes for convert().

convert(input, options?)

function convert(
  input: string | Buffer | Uint8Array | ArrayBuffer,
  options?: ConvertOptions,
): Promise<ConvertedPage[]>;

Inputs

Prop

Type

ConvertOptions

Prop

Type

Page indices are zero-based

pages: [0] means the first page. pages: [1] means the second page.

ConvertedPage

Prop

Type

Error codes

Prop

Type

On this page