{"action":"opened","issue":{"url":"https://api.github.com/repos/eKoopmans/html2pdf/issues/13","repository_url":"https://api.github.com/repos/eKoopmans/html2pdf","labels_url":"https://api.github.com/repos/eKoopmans/html2pdf/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/eKoopmans/html2pdf/issues/13/comments","events_url":"https://api.github.com/repos/eKoopmans/html2pdf/issues/13/events","html_url":"https://github.com/eKoopmans/html2pdf/issues/13","id":233130597,"number":13,"title":"Text sliced at botton of pdf","user":{"login":"lidijarad","id":5442832,"avatar_url":"https://avatars0.githubusercontent.com/u/5442832?v=3","gravatar_id":"","url":"https://api.github.com/users/lidijarad","html_url":"https://github.com/lidijarad","followers_url":"https://api.github.com/users/lidijarad/followers","following_url":"https://api.github.com/users/lidijarad/following{/other_user}","gists_url":"https://api.github.com/users/lidijarad/gists{/gist_id}","starred_url":"https://api.github.com/users/lidijarad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lidijarad/subscriptions","organizations_url":"https://api.github.com/users/lidijarad/orgs","repos_url":"https://api.github.com/users/lidijarad/repos","events_url":"https://api.github.com/users/lidijarad/events{/privacy}","received_events_url":"https://api.github.com/users/lidijarad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-02T09:44:43Z","updated_at":"2017-06-02T09:44:43Z","closed_at":null,"body":"Hello @eKoopmans, \r\n\r\nthank you again for such a great tool. I was wondering if you you or anyone has encountered this problem. I am using html2pdf lib to produce a PDF where the html is dynamic and changing. I have tried adjusting the margins but for some cases, when the text within the html is long and needs to go onto the next page, the text on the last line is sliced. Here is an example of what I mean: Is it possible that this might be due to the docHeight of the canvas as mentioned in #6? \r\nThis is how I am producing the pdf:\r\n```\r\nhtml2pdf(pdf_element, {\r\n\t margin: [0.8, 1, 0.5, 1],\r\n\t filename: pdf_name,\r\n         image: { type: 'jpeg',quality: 0.98 },\r\n         html2canvas: { dpi: 192, letterRendering: true },\r\n         jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' }\r\n});\r\n```\r\n![screenshot from 2017-05-29 21-40-59](https://cloud.githubusercontent.com/assets/5442832/26720381/5513d504-4788-11e7-8ecb-77efa79cafd0.png)\r\n"}}
{"actor":{"display_login":"lidijarad"}}