File evCreate API Section
The File section of the evCreate API includes enumerations, interfaces, and functions to open, close, save .evdoc files, and import content from Envision and PDF documents.
file namespace
The File evCreate API section is accessed with the file namespace:
Enumerations
EvPdfEmbeddedFontsOptionsAn enumeration of policies for handling embedded fonts when importing content from a PDF file.
EvPdfTextFlowOptionsAn enumeration of policies for handling text flow when importing content from a PDF file.
EvPdfTextMergingOptionsAn enumeration of policies for determining word boundaries when importing content from a PDF file.
Interfaces
EvCloudFileAn interface that describes the location of a given .evdoc file on the Canvas Envision Portal cloud solution.
EvPdfOptionsAn interface that defines the policies for handling the text imported from a PDF file.
Functions
Append(file?: EvCloudFile): Promise<void>A function to append the contents of an .evdoc file located on the Canvas Envision Portal cloud solution to the current document.
Close(force?: boolean): Promise<boolean>A function to close the current document.
InsertPdf(data: ArrayBuffer, options?: EvPdfOptions, pwd?: string): Promise<EvItem[]>A function to append the contents of a PDF file given as a blob to an .evdoc file.
InsertPdfFromUrl(url: string, options?: EvPdfOptions, pwd?: string): Promise<EvItem[]>A function to append the contents of a PDF file accessed via a URL to an .evdoc file.
OpenDocument(file?: EvCloudFile): Promise<undefined | EvCloudFile>A function to open an .evdoc file from the Canvas Envision Portal cloud solution in the current browser tab. It is available only for an embedded front-end app of the Canvas Envision Creator.
OpenInNewTab(file?: EvCloudFile): Promise<undefined | EvCloudFile>A function to open an .evdoc file from the Canvas Envision Portal cloud solution in a new browser tab.
Save(): Promise<void>A function to save an .evdoc file currently opened from the Canvas Envision Portal cloud solution.
SaveAs(file?: EvCloudFile): Promise<undefined | EvCloudFile>A function to save a currently opened .evdoc file as a new one at a given location on the Canvas Envision Portal cloud solution.