2022-06-12 19:26:34 +02:00
|
|
|
/*
|
2022-10-26 23:04:59 +02:00
|
|
|
* pdf candidate is a construct used internally for mapping html
|
|
|
|
* to pdf buffers delivered by puppeteer
|
|
|
|
*/
|
2022-03-24 14:32:49 +01:00
|
|
|
import * as plugins from './smartpdf.plugins.js';
|
2018-10-06 13:25:45 +00:00
|
|
|
|
|
|
|
export class PdfCandidate {
|
2021-10-14 10:59:45 +02: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 10:59:45 +02:00
|
|
|
constructor(htmlStringArg: string) {
|
|
|
|
this.htmlString = htmlStringArg;
|
|
|
|
}
|
2018-10-06 13:25:45 +00:00
|
|
|
}
|