smartpdf/ts/smartpdf.classes.pdfcandidate.ts
2022-10-26 23:04:59 +02:00

16 lines
406 B
TypeScript

/*
* pdf candidate is a construct used internally for mapping html
* to pdf buffers delivered by puppeteer
*/
import * as plugins from './smartpdf.plugins.js';
export class PdfCandidate {
public htmlString: string;
public pdfId = plugins.smartunique.shortId();
public doneDeferred = plugins.smartpromise.defer();
constructor(htmlStringArg: string) {
this.htmlString = htmlStringArg;
}
}