2022-06-12 17:26:34 +00:00
|
|
|
/*
|
2022-10-26 21:04:59 +00:00
|
|
|
* pdf candidate is a construct used internally for mapping html
|
|
|
|
* to pdf buffers delivered by puppeteer
|
|
|
|
*/
|
2022-03-24 13:32:49 +00:00
|
|
|
import * as plugins from './smartpdf.plugins.js';
|
2018-10-06 13:25:45 +00:00
|
|
|
|
|
|
|
export class PdfCandidate {
|
2021-10-14 08:59:45 +00:00
|
|
|
public htmlString: string;
|
|
|
|
public pdfId = plugins.smartunique.shortId();
|
|
|
|
public doneDeferred = plugins.smartpromise.defer();
|
2018-10-06 13:25:45 +00:00
|
|
|
|
2021-10-14 08:59:45 +00:00
|
|
|
constructor(htmlStringArg: string) {
|
|
|
|
this.htmlString = htmlStringArg;
|
|
|
|
}
|
2018-10-06 13:25:45 +00:00
|
|
|
}
|