-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minified version not working - Tested with Chrome & Firefox & Angularjs 1.2.4 #18
Comments
thanks for reporting, I'll try to take a look at it tomorrow |
I am also getting the "no unicode cmap for font" error at a.registerTTF. I am working on an Ionic/AgnularJS project that I would like to add pdf reports to. I have included the pdfmake.min.js as well as the vfs_fonts.js files and setup the basic document definition. But when I try to print or getDataUrl(), I get the cmap error. Is there something I am not doing correctly w/ the font? Is this only supposed to be used on the server-side w/ a nodeJS site? |
+1. I'm also getting this. |
me too |
I was using this with rails. The non-minified file worked fine, but once minified by the asset pipeline (in production), I get this exact same error in the browser. |
+1. I get this too. |
I am developing an mobile app which require pdf generation in cordova using pdfmake, bower, |
@deogadekunal |
+1. |
Regarding the "No unicode cmap for font", it looks like it is a pdfkit issue. But since pdfmake uses a fork of pdfkit, that commit is not yet merged. |
I'll update pdfkit in a few hours, I just have to remove brfs dependencies so it doesn't embed standard fonts. Otherwise pdfmake grows to 1.4 MB |
@rohitgirme do you mind sharing with me how do use |
Has anyone continued to experience this error, even when using the non-minified version? |
Hi.
I'm trying to get pdfmake working with Angularjs, but when I try to use the minified version it is not working.
With createPdf(dd).open() is not working (No error message)
With createPdf(dd).print() I have this error message:
Error: No unicode cmap for font
at a.registerTTF (pdfmake.min.js:3:10521)
at new a (pdfmake.min.js:3:8885)
at d.b.exports.font (pdfmake.min.js:5:506)
at n.provideFont (pdfmake.min.js:7:5740)
at pdfmake.min.js:7:13190
at Array.forEach (native)
at i (pdfmake.min.js:7:13048)
at c.buildInlines (pdfmake.min.js:7:13653)
at c.measureLeaf (pdfmake.min.js:6:13905)
at build/pdfmake.min.js:6:13070
With no-minified version is working fine.
The text was updated successfully, but these errors were encountered: