Pdfmake: Cannot read property 'createPdf' of undefined

Created on 14 Feb 2018  路  1Comment  路  Source: bpampuch/pdfmake

I am not able to print my canvas. I am using html2canvas in conjunction with pdfmake. This is what the error logs:

Error canvas TypeError: Cannot read property 'createPdf' of undefined
    at next (main.bundle.js:7155)
    at addImage (main.bundle.js:7169)
    at main.bundle.js:7171
    at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.bundle.js:6206)
    at Object.onInvoke (vendor.bundle.js:318822)
    at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.bundle.js:6205)
    at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.run (polyfills.bundle.js:5956)
    at polyfills.bundle.js:6676
    at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.bundle.js:6239)
    at Object.onInvokeTask (vendor.bundle.js:318813)

Can you please let me know what is the issue ?
Versions used :
pdfmake : 0.1.33 & 0.1.35
html2canvas: 0.5.0-beta4 & 1.0.0-alpha.9
browser: Google Chrome Version 63.0.3239.132

>All comments

You probably do not include pdfmake library or call wrongly createPdf method.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dgrice picture dgrice  路  3Comments

jkd003 picture jkd003  路  3Comments

ValeSauer picture ValeSauer  路  3Comments

einfallstoll picture einfallstoll  路  3Comments

davidyeiser picture davidyeiser  路  3Comments