Bug with PDF maker.
Bug with PDF maker.
mesqueeb
Posts: 38Questions: 12Answers: 1
I get the following bug when clicking the PDF button:
pdfmake.min.js:8 Uncaught TypeError: Cannot read property 'Roboto-Regular.ttf' of undefined
This is my page:
http://jtc.ae/?page=s_page&p_num=1&item_num=20&v=e
This discussion has been closed.
Answers
I'm having the same issue. I made a clean new project with the last versions at the date. I am not using Roboto-Regular anywhere. Any idea? Thanks
Found the solution in these threads:
https://github.com/bpampuch/pdfmake/issues/302
http://stackoverflow.com/questions/28320624/typeerror-cannot-read-property-roboto-regular-ttf-of-undefined
Make sure that in addition of pdfmaker.js you are linking vfs_fonts.js as well. And that you are doing it in the correct order, that should be this:
And NOT this:
Good luck
Awesome - thanks for posting back @chimos!