jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

Image gets cut off when using jspdf.html() method

Open agarshan opened this issue 3 years ago • 4 comments

I'm generating a pdf using jspdf.html() and images in the html are breaking into two parts in end of the pages. Is there are any solutions or alternate ways to solve the issue. {autoPaging:'text'} this is only working for text and not for images.

agarshan avatar Jul 27 '22 05:07 agarshan

+1

gabby-g007 avatar Jul 31 '22 08:07 gabby-g007

Same happens for tables as well. image

gabby-g007 avatar Jul 31 '22 08:07 gabby-g007

Hello, are you guys generating the HTML with a string or element?

Cruz01pt avatar Aug 10 '22 14:08 Cruz01pt

@gabby-g007 white no reply to you question, you can use alternative autoTable: theme: 'grid', rowPageBreak: 'avoid', margin: margin

glebov21 avatar Sep 01 '22 08:09 glebov21

Hello, are you guys generating the HTML with a string or element? element

agarshan avatar Nov 20 '22 04:11 agarshan

@agarshan have u found any solution for this problem ?

ChamkhiAnas avatar Feb 07 '23 23:02 ChamkhiAnas

@glebov21 what abt the case when u dont have tables u have dynamic components that u want to convert to pdf using DOM i'm facing the same cut off issue image

ChamkhiAnas avatar Feb 10 '23 22:02 ChamkhiAnas

This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant.

github-actions[bot] avatar May 12 '23 01:05 github-actions[bot]

Hello,

Anyone got this issue fixed. I've the same issue the elements cutoff between pdf pages. How can we control it ?

Saifiyan avatar Aug 01 '23 12:08 Saifiyan

Hello Does anyone got solution for this issue

kajana-supriya avatar Feb 16 '24 08:02 kajana-supriya