pdfmake icon indicating copy to clipboard operation
pdfmake copied to clipboard

try catch not trigger on related url font error

Open jordankkk opened this issue 3 years ago • 6 comments

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
      }

image

jordankkk avatar Sep 09 '20 01:09 jordankkk

This error cannot be caught now because the methods do not return Promise. It will be fixed in version 0.2.

liborm85 avatar Sep 29 '20 13:09 liborm85

Any update on when this fix will be available in stable branch?

rvoelkel-nest avatar Jun 11 '21 07:06 rvoelkel-nest

same here, really need this feature.

willyou avatar Apr 26 '22 04:04 willyou

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

cyril23 avatar May 18 '22 14:05 cyril23

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 !

popod avatar Jul 18 '23 14:07 popod

Hi @popod,

Sorry for accidentally close this.

jordankkk avatar Jul 18 '23 14:07 jordankkk