pdfmake
pdfmake copied to clipboard
try catch not trigger on related url font error
let say test with wrong font cdn url
client side on pdfmake v0.1.68
try {
pdfMake.createPdf(doc).getBlob((data) => {
console.log(data); // not trigger
});
} catch (error) {
console.log(error); // not trigger
}
This error cannot be caught now because the methods do not return Promise. It will be fixed in version 0.2.
Any update on when this fix will be available in stable branch?
same here, really need this feature.
Another use case would be catching the error of a node larger than 1 page not being displayed, see https://github.com/bpampuch/pdfmake/issues/1159
Hi @jordankkk,
Why is this issue closed ? Could it not be resolved in 0.3.0 like @liborm85 say ?
Thank your for your feedback and for this useful lib !
Hi @popod,
Sorry for accidentally close this.