-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Missing several line of text when using html() with autopaging: text #3393
Comments
I'm having a similar issue printing html to pdf. Not only does it appear to be removing lines, it also appears to change CSS Styling and positioning of elements passed the page break |
From what have figured out, it appears to be an issue between autopagin text and margin bottom. For me, its seems to have fixed by removing setting margin-bottom 0px and removing autopaging. Although my margins were previously all set to 10. |
Thanks for the bug report. A pull request fixing this is very welcome. |
the issue i just created is probably related to this ? |
in my case all of the formatting problems start when autopaging is set to true and i have more than 2 pages ... the more pages i have the bigger are the formatting errors.. |
@aholake @valueerrorx have u found any solution for this problem plz ? |
unfortunately not. this way i am able to set some basic options (like printBackground, pageSize, etc) and via CSS @media print {} condition i am able to change a lot of inpage styles before printing to pdf (making some elements invisible for example) |
I'm facing an issue when using html() function to print out a html element.
This is my code:
This is content displaying the my DOM
When I set autoPaging =
text
The output pdf will be:
As you see, we miss the text line
EU PEDE MOLLIS PRETIUM. INTEGER TINCIDUNT. CRAS DAPIBUS. VIVAMUS ELEMENTUM SEMPER NISI.
Then I tried switching to
slice
mode, now the text line is rendered, but it's sliced and put on 2 different pages. This is not our expectation :(I'm wondering if it is a problem when calculating the possition to render the next line of Context2D when a text line is cut off.
I don't have any idea to fix it so far.
Hope to see your help soon
The text was updated successfully, but these errors were encountered: