evCreate API 5.7 Help

InsertPdf Function

Inserts the contents of a PDF document given as a binary large object (blob) into an Envision document currently opened in the Canvas Envision Creator app.

InsertPdf( data: ArrayBuffer, options?: [[[EvPdfOptions|evpdfoptions-interface.html]]], pwd?: string ): Promise<[[[EvItem|canvas-envision-document-items.html#page-items]]][]>

Parameters

data: ArrayBuffer

An array of bytes, the blob of a PDF file whose contents should be imported into the current .evdoc file.

options?: EvPdfOptions

An EvPdfOptions object with the policies for handling the text imported from the PDF file.

pwd?: string

A string, a password for the PDF file if it is protected.

Return value

Promise<EvItem[]>

A Promise that, if fulfilled, resolves to an array of Page items generated from the imported PDF file.

12 February 2025