{"action":"closed","issue":{"url":"https://api.github.com/repos/MrRio/jsPDF/issues/1009","repository_url":"https://api.github.com/repos/MrRio/jsPDF","labels_url":"https://api.github.com/repos/MrRio/jsPDF/issues/1009/labels{/name}","comments_url":"https://api.github.com/repos/MrRio/jsPDF/issues/1009/comments","events_url":"https://api.github.com/repos/MrRio/jsPDF/issues/1009/events","html_url":"https://github.com/MrRio/jsPDF/issues/1009","id":199612597,"node_id":"MDU6SXNzdWUxOTk2MTI1OTc=","number":1009,"title":"Table cell data shifted/overflowing - HTML source","user":{"login":"pierrerocket","id":24665344,"node_id":"MDQ6VXNlcjI0NjY1MzQ0","avatar_url":"https://avatars3.githubusercontent.com/u/24665344?v=4","gravatar_id":"","url":"https://api.github.com/users/pierrerocket","html_url":"https://github.com/pierrerocket","followers_url":"https://api.github.com/users/pierrerocket/followers","following_url":"https://api.github.com/users/pierrerocket/following{/other_user}","gists_url":"https://api.github.com/users/pierrerocket/gists{/gist_id}","starred_url":"https://api.github.com/users/pierrerocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierrerocket/subscriptions","organizations_url":"https://api.github.com/users/pierrerocket/orgs","repos_url":"https://api.github.com/users/pierrerocket/repos","events_url":"https://api.github.com/users/pierrerocket/events{/privacy}","received_events_url":"https://api.github.com/users/pierrerocket/received_events","type":"User","site_admin":false},"labels":[{"id":839629695,"node_id":"MDU6TGFiZWw4Mzk2Mjk2OTU=","url":"https://api.github.com/repos/MrRio/jsPDF/labels/from_html.js","name":"from_html.js","color":"000000","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-09T17:29:45Z","updated_at":"2018-09-06T20:20:37Z","closed_at":"2018-09-06T20:20:37Z","author_association":"NONE","body":"Hello, \r\nI am using jspdf to generate a pdf of an events calendar on a website.\r\n\r\n![screen shot 2017-01-09 at 11 06 02 am](https://cloud.githubusercontent.com/assets/24665344/21776000/01d5d3ec-d65e-11e6-8782-c5dd9fd2873c.png)\r\n\r\nHowever all of the table data is shifted by two cells.  Any idea why this is happening or what I can do to resolve it?  The code I am using to generate the PDF:\r\n\r\n```\r\n<button onclick=\"javascript:generatePDFcalendar();\">Download PDF</button>\r\n\r\n<script type=\"text/javascript\">\r\n        function generatePDFcalendar() {\r\n            var pdf = new jsPDF('l', 'pt', 'letter');\r\n            // source can be HTML-formatted string, or a reference\r\n            // to an actual DOM element from which the text will be scraped.\r\n            source = jQuery('#print-calendar')[0];\r\n\r\n            // we support special element handlers. Register them with jQuery-style \r\n            // ID selector for either ID or node name. (\"#iAmID\", \"div\", \"span\" etc.)\r\n            // There is no support for any other type of selectors \r\n            // (class, of compound) at this time.\r\n            specialElementHandlers = {\r\n                // element with id of \"bypass\" - jQuery style selector\r\n                '#bypassme': function(element, renderer) {\r\n                    // true = \"handled elsewhere, bypass text extraction\"\r\n                    return true\r\n                }\r\n            };\r\n            margins = {\r\n                top: 80,\r\n                bottom: 60,\r\n                left: 40,\r\n                width: 522\r\n            };\r\n            // all coords and widths are in jsPDF instance's declared units\r\n            // 'inches' in this case\r\n            pdf.fromHTML(\r\n                    source, // HTML string or DOM elem ref.\r\n                    margins.left, // x coord\r\n                    margins.top, {// y coord\r\n                        'width': margins.width, // max width of content on PDF\r\n                        'elementHandlers': specialElementHandlers\r\n                    },\r\n            function(dispose) {\r\n                // dispose: object with X, Y of the last line add to the PDF \r\n                //          this allow the insertion of new lines after html\r\n                pdf.save('Calendar-test.pdf');\r\n            }\r\n            , margins);\r\n        }\r\n    </script>\r\n\r\n```"}}
{"actor":{"display_login":"arasabbasi"}}