Skip to content
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

jsPDF AutoTable plugin v2.3.0 not working. Needs to be updated! #141

Open
arivera12 opened this issue Feb 11, 2017 · 4 comments
Open

jsPDF AutoTable plugin v2.3.0 not working. Needs to be updated! #141

arivera12 opened this issue Feb 11, 2017 · 4 comments

Comments

@arivera12
Copy link

This is the error I am receiving on the console:
Uncaught TypeError: Cannot read property 'fontSize' of undefined
at http://localhost:54638/scripts/table-export.min.js:195:83
at Array.forEach (native)
at Object.function.d.beforePageContent.d.beforePageContent (http://localhost:54638/scripts/table-export.min.js:193:88)
at undefined.t.afterPageContent.undefined.t.beforePageContent.undefined.t.afterPageAdd.undefined.t.addPageContent.t.addPageContent (http://localhost:54638/scripts/jspdf.plugin.autotable.min.js:10:17653)
at Object.l [as addContentHooks] (http://localhost:54638/scripts/jspdf.plugin.autotable.min.js:10:5655)
at Object.o.API.autoTable (http://localhost:54638/scripts/jspdf.plugin.autotable.min.js:13:1678)
at HTMLDivElement. (http://localhost:54638/scripts/table-export.min.js:215:134)
at Function.each (http://localhost:54638/scripts/jquery.min.js:3:3168)
at n.fn.init.each (http://localhost:54638/scripts/jquery.min.js:3:703)
at http://localhost:54638/scripts/table-export.min.js:191:24

@hhurz
Copy link
Owner

hhurz commented Feb 11, 2017

Just updated to jsPDF version 1.3.2 and verified that it works for me without any changes. Cannot confirm this issue without any further information.

@arivera12
Copy link
Author

arivera12 commented Feb 11, 2017

I think the problem is on the jspdf.autotable.js plugin and not on jspdf itself.
Take a look of the screenshot...
image

My jspdf.autotable.js plugin version is v2.3.0

@arivera12 arivera12 changed the title Current version of jspdf not working version "1.x-master" jsPDF AutoTable plugin v2.3.0 not working Feb 11, 2017
@arivera12
Copy link
Author

Yup, the problem is the autotable plugin. I tested the version here on this repo which is v2.0.14 and its works out of the box. It seems they have renamed a lot of functions and properties on v2.3.0. Are you updating the autotable plugin to the last version or are you just going to stay on the current version of this repo? This may give you some headache if people doesnt dowload the plugins which ishosted on this repo as I did... I dont think it should be a big deal to do it.

@arivera12 arivera12 changed the title jsPDF AutoTable plugin v2.3.0 not working jsPDF AutoTable plugin v2.3.0 not working. Needs to be updated! Feb 11, 2017
@hhurz
Copy link
Owner

hhurz commented Feb 12, 2017

I'm not planing to update autotable plugin in the near future. Doing this would need some rework of the tableexport plugin code, because there are fixes and tweaks in it, that refere to this special version of jsPDF Autotable. Furthermore I'm thinking about to integrate the portions of code that the tableexport plugin uses from the autotable plugin, so there will no more depencies from it any more. Anyway, both solutions would need some time... BTW: You are the first one, who stumbled over it ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants