PdfWebWorker Class

File
wijmo.grid.pdf.js
Module
wijmo.grid.pdf

Represents server-side methods for exporting FlexGrid to PDF/generating PDF, for use with Web Worker.

Methods

Methods

Static deserializeGrid

deserializeGrid(data: ArrayBuffer, settings?: IFlexGridDrawSettings): any

Deserializes the FlexGrid from ArrayBuffer to its internal representation that can be used in a Web Worker and passed to the draw and drawToPosition methods.

Parameters
Returns
any

Static initExport

initExport(draw: Function): void

Performs the PDF document generation started in a UI thread by calling the export method.

Parameters
Returns
void

Static initExportGrid

initExportGrid(): void

Performs the export started in a UI thread by calling the exportGrid method.

Returns
void

Static sendExportProgress

sendExportProgress(value: number): void

Sends the progress value to a client, where it will be handled by the export's progress callback function. Should be used in conjunction with the export method to inform client about the progress of the export.

Parameters
Returns
void