@progress/kendo-react-pdf
Version:
React PDF Processing enables you to export single- and multi-page content in PDF. KendoReact PDF Processing package
28 lines (27 loc) • 1.23 kB
TypeScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { DrawOptions, Group } from '@progress/kendo-drawing';
import { PDFOptions } from '@progress/kendo-drawing/pdf';
import { SaveOptions } from '@progress/kendo-file-saver';
import { PDFExportProps } from './PDFExportProps.js';
/**
* @hidden
*/
export default class KendoDrawingAdapter {
private drawDOM;
private exportPDF;
private saveAs;
private domElement;
private options;
constructor(drawDOM: (element: HTMLElement, options: DrawOptions) => Promise<Group>, exportPDF: (group: Group, options: PDFOptions) => Promise<string>, saveAs: (dataUri: string, fileName: string, options: SaveOptions) => void, domElement: HTMLElement, options?: PDFExportProps);
savePDF(callback?: () => void): void;
private getDrawOptions;
private getPDFOptions;
private getSaveOptions;
private convertPageTemplateToHtml;
}