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
Uncaught TypeError: Cannot read property 'name' of undefined #516
Comments
I have got a similar error - This is the code - var doc = new jsPDF('p', 'pt', 'letter');
debugger
// We'll make our own renderer to skip this editor
var specialElementHandlers = {
'#questionare': function(element, renderer){
return true;
}
};
// All units are in the set measurement for the document
// This can be changed to "pt" (points), "mm" (Default), "cm", "in"
doc.fromHTML($('#printArea').get(0), 15, 15, {
'width': 170,
'elementHandlers': specialElementHandlers
});
debugger
doc.output('dataurlnewwindow', {})` using these libraries - <script type="text/javascript" src="assets/js/jspdf/jspdf.js"></script>
<script type="text/javascript" src="assets/js/jspdf/standard_fonts_metrics.js"></script>
<script type="text/javascript" src="assets/js/jspdf/split_text_to_size.js"></script>
<script type="text/javascript" src="assets/js/jspdf/from_html.js"></script>
<script type="text/javascript" src="assets/js/jspdf/cell.js"></script> |
Any workaround for this? |
i got the same issue because of i have used colspan. removed that and everything fine for me.. |
Hi I am also, getting same error, Any solution ? |
that error occurred to me as because i applied col-span to the header. hope this helps On Tue, Dec 15, 2015 at 11:24 PM, Neeraj notifications@github.com wrote:
|
Getting same error : |
That issue has been there for some time now. Apparently the plugin doenst work for any colspan or rowspan |
Any news on this issue ? |
+1 |
I was able to fix this by modifying line 6203 of jspdf.debug.js (on version 1.2.61) to this:
Which was originally:
Alternatively, I could make it go away by adding another td to the tr it was processing (it only had one td, which apparently caused the problem). |
i have the same error message and when i try to fix it by replacing line 6203 with |
@BingeCoder that worked. Thanks! |
I had to wrap the if statements at lines 7640 and 7663 with |
im getting erro |
I replaced table to div because the data I was displaying was minimal and that helped to render the PDF without issues. |
I was getting this error constantly until i removed the table header element. Then it took the first row for the header, and rest, the body part. www.coredes.io |
We are closing this issue, because we will not support any longer Explaination: Best Regards |
Unable to create pdf with this :
|
Seem to consistently be getting an error on this line in from_html and jspdf.debug.
Tried to work through it, though I'm not sure this part
I might just be doing something wrong though.
otherwise this has been a troublesome bug
The text was updated successfully, but these errors were encountered: