ComponentOne ASP.NET MVC Controls
PdfWebWorkerClient Class
File
wijmo.grid.pdf.js
Module
wijmo.grid.pdf

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

Methods

Methods

 

Static addGrid
addGrid(worker: Worker, grid: FlexGrid, name: string, settings: IFlexGridDrawSettings): void

Adds named FlexGrid with settings, which will be used in a Web Worker to generate a PDF document. This method should be used in conjunction with the export method.

Parameters
Returns
void

 

Static addImage
addImage(worker: Worker, image: string, name: string, settings: IPdfImageDrawSettings): void

Adds named image with settings, which will be used in a Web Worker to generate a PDF document. This method should be used in conjunction with the export method.

Parameters
Returns
void

 

Static addString
addString(worker: Worker, value: string, name: string): void

Adds named string which will be used in a Web Worker code to generate a PDF document. This method should be used in conjunction with the export method.

Parameters
Returns
void

Static export

export(worker: Worker, settings: any, done: Function, progress?: Function): void

Exports PDF in a background thread.

Parameters
Returns
void

Static exportGrid

exportGrid(worker: Worker, grid: FlexGrid, fileName: string, settings: IFlexGridExportSettings, done?: Function, progress?: Function): void

Exports the FlexGrid to PDF in a background thread.

Parameters
Returns
void

Static serializeGrid

serializeGrid(grid: FlexGrid, settings?: IFlexGridExportSettings): ArrayBuffer

Serializes the FlexGrid to ArrayBuffer. The serialized data can be send to a Web Worker using the postMessage method.

Parameters
Returns
ArrayBuffer