-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Description
I have to build a pdf based on dynamic text. I am using an HTML page to load in stored content from the forms that the user will fill out. When the data exceeds the pagesize a new page is created but a line always gets cut out inbetween the two pages. I have no way of knowing exactly where in the html this will occur because it will always be different based on what you've filled out and can range from 1-20+ pages. So far I've tried css page breaks, 'pagesplit:true', and slightly modifying the fromHTML.js functions to try and change the starting y value(which didnt work). messing with the maxLineHeight variable in the renderTextFragment function showed me the missing line but in an arbitrary position on the page. for example, maxLineHeight = Math.max(maxLineHeight, style["line-height"], style["font-size"])-x; //for x=random number 1-50. seemed to work, but again i would not know where to put this before hand. Any idea how to fix this? Same problem when you exceed two pages(line got cut out between pages 2-3)