UNPKG

jspdf-html2canvas

Version:

A combine usage with jsPDF and html2canvas, which translating html content to PDF file.

14 lines (13 loc) 351 B
import type { jsPDF } from 'jspdf'; import type { Options } from '../types'; declare function getPageData({ canvas, pdf, pdfContentWidth, opts }: { canvas: HTMLCanvasElement; pdf: jsPDF; pdfContentWidth: number; opts: Options; }): { pageData: string; printWidth: number; printHeight: number; }; export default getPageData;