Skip to content
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

0.9.2: page-break options has issues #708

Open
shaghz opened this issue Jul 12, 2024 · 1 comment
Open

0.9.2: page-break options has issues #708

shaghz opened this issue Jul 12, 2024 · 1 comment

Comments

@shaghz
Copy link

shaghz commented Jul 12, 2024

When using the tool with these options, I still encounter the problem where the text gets cut off in the middle. Below are the current settings I'm using:
Screenshot 2024-07-05 at 10 38 56

  html2canvas: {
    scale: 2,
    useCORS: true,
  },
  margin: 8,
  pagebreak: {
    mode: 'avoid-all',
  },
  jsPDF: {
    format: 'legal',
  },

I suspect the issue might be related to the margin settings, as the problem resolves when I remove the margin. However, I need to keep the margin. Could you provide me any help?

@Pavlo-Tytko
Copy link

What redused this issue (but not fixed fully) is replacing every padding with a margin and replacing 1px heigth border bottom or top with element with heigth 1 and background of the border. It looks bad from code perspective, but reduses the shift.
But that did not fix it fully, just made it happen on later pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants