jsPDF-AutoTable icon indicating copy to clipboard operation
jsPDF-AutoTable copied to clipboard

Table Border is off and value is not displayed when the first column is having large rowSpan.

Open urenpatelce opened this issue 1 year ago • 3 comments

We are having tables which have many large rowSpans for many columns and when we have the data like below mentioned 2 images then the table border and value is not coming up properly in the output PDF.

image

image

Below mentioned are 2 output PDFs: As you can see that for portrait page layout, the report looks good because we have the space to fit the rowSpan column. But for landscape, as soon as the rowSpan is larger then the page size then the issue is reproducible.

Portrait.pdf

Issue with first column and value "autoARAdmin":

Landscape.pdf

Please consider this defect and at least correct borders and value should be repeated in the next page so that user don't have to scroll up to check the first column value. Also current output looks broken and weird.

Thanks for your time and for creating this library and really works great.

  • Uren.

urenpatelce avatar Jun 21 '24 07:06 urenpatelce

Sounds like a bug! Could you create a minimal example with test data that highlights the issue?

simonbengtsson avatar Jun 21 '24 08:06 simonbengtsson

@simonbengtsson sure i will try to create one.. with sample data. If you have any codepen link which generates the report from html then please pass it here. I will update the same. Its just that first column is having large rowSpan which isn't possible to fit in single page then this issue is reproducible.

urenpatelce avatar Jun 21 '24 10:06 urenpatelce

Attaching the sample HTML which you can use to replicate the issue.

sample.zip

urenpatelce avatar Jun 25 '24 09:06 urenpatelce

Hmm, not sure I understand what the issue is in the submitted sample. Could you clarify?

simonbengtsson avatar Aug 30 '24 09:08 simonbengtsson

This issue will soon be closed since issues in this project are mainly meant to be bugs or feature requests. Questions are directed to stackoverflow.

github-actions[bot] avatar Sep 07 '24 01:09 github-actions[bot]

@simonbengtsson check below imge. The first cell should have the border with blank cell. This doesn't looks good and looks like its broken for the first cell. We alredy got comments form many users regarding this. If the cell is empty with white background then at least it is clearly stating that there is no value or there is still rowSpan going on. Let me know if you need more details.

image

urenpatelce avatar Sep 09 '24 06:09 urenpatelce

This is a duplicate of #809

mmghv avatar Sep 09 '24 12:09 mmghv