simonbengtsson / jsPDF-AutoTable

jsPDF plugin for generating PDF tables with javascript
https://simonbengtsson.github.io/jsPDF-AutoTable/
MIT License
2.33k stars 624 forks source link

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

Closed urenpatelce closed 2 months ago

urenpatelce commented 5 months ago

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.

simonbengtsson commented 5 months ago

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

urenpatelce commented 5 months ago

@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 commented 4 months ago

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

sample.zip

simonbengtsson commented 2 months ago

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

github-actions[bot] commented 2 months ago

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.

urenpatelce commented 2 months ago

@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

mmghv commented 2 months ago

This is a duplicate of #809