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

Split column across pages if not enough space

Open VKB2612 opened this issue 4 years ago • 23 comments

I want to print remaining columns on a new page if it is not enough horizontal space to show it on one page.

VKB2612 avatar Jul 15 '20 13:07 VKB2612

I assume you would like to have something like this?

frame

I thought we already had a feature request for this since it is one of the most requested features. Couldn't find it now though so maybe you can edit this ticket to be a feature request instead?

simonbengtsson avatar Jul 15 '20 14:07 simonbengtsson

Hi @simonbengtsson

The above sample PDF is exactly what is required. I edit the ticket now to make it a request feature. Thanks.

VKB2612 avatar Jul 16 '20 08:07 VKB2612

Great 👌 Simplified the issue a bit now.

simonbengtsson avatar Jul 16 '20 12:07 simonbengtsson

Watching this issue, I have the same preferences.

DDorrance90 avatar Jul 16 '20 19:07 DDorrance90

Hi @simonbengtsson ,
Is there any update on this?

Thanks and regards

VKB2612 avatar Aug 03 '20 13:08 VKB2612

Hi! As far as I know no one is working on it.

simonbengtsson avatar Aug 03 '20 14:08 simonbengtsson

Hi @simonbengtsson

This requirement/feature is quite important for release as wrapping cell content is not a feasible option (lengthy numeric values are not easily readable when wrapped). It would be really helpful if this task can be prioritized. Thanks in advance.

Regards

VKB2612 avatar Aug 05 '20 10:08 VKB2612

Agreed, seems like many people are looking for this feature. I have no bandwidth to look into it in the foreseeable future. I'll be happy to review a merge request asap if you make one however.

simonbengtsson avatar Aug 05 '20 10:08 simonbengtsson

Hi @simonbengtsson ,

if I have understood you correctly, you want me to make the proposed/requested changes and make a merge request? Regards

VKB2612 avatar Aug 25 '20 14:08 VKB2612

Hi @simonbengtsson

Unfortunately this would not be possible from my end in the moment. Can you please suggest any other alternate solution?

Thanks and Regards

VKB2612 avatar Sep 03 '20 14:09 VKB2612

Except for increasing page size or making font size smaller I don't know of an alternative solution.

simonbengtsson avatar Sep 03 '20 14:09 simonbengtsson

Hi i have 139 columns using jspdf-autotable, how to adjust or split column or is there any alternate solution?

Sindhuja1295 avatar Sep 11 '20 09:09 Sindhuja1295

I thought some about it now and I guess you could select a huge page such as A0 in landscape. Then split it with a tool such as this https://deftpdf.com/split-pdf-down-the-middle. Maybe you can even find a way to split a page with jspdf.

simonbengtsson avatar Sep 11 '20 09:09 simonbengtsson

I can help, I will start working on it

prpateldev avatar Sep 15 '20 11:09 prpateldev

Sounds great!

simonbengtsson avatar Sep 15 '20 11:09 simonbengtsson

Hi, My requirement is to support 100 columns in jspdf-autotable plugin? is it possible?

Sindhuja1295 avatar Sep 15 '20 11:09 Sindhuja1295

Hi, My requirement is to support 100 columns in jspdf-autotable plugin? is it possible?

yes but need to modify the plugin code

prpateldev avatar Sep 15 '20 15:09 prpateldev

Can i have the sample please? Where i have to change the font sze in plugin and page size?

Sindhuja1295 avatar Sep 16 '20 03:09 Sindhuja1295

Hi,

I have set small font size and large page size in jspdf, my version jspdf-plugin-autotable- v3.5.6

I have 139 columns,

but i am facing the below error, kindly assist to overcome from this issue.

image

Sindhuja1295 avatar Sep 16 '20 13:09 Sindhuja1295

I can help, I will start working on it

Hi @prpateldev Thanks. Appreciate the help.

VKB2612 avatar Sep 21 '20 14:09 VKB2612

Hi,

I have 139 columns in the pdf report, as u have guided i have adjusted the font size and page size. Kindly find the below image, image

Sindhuja1295 avatar Sep 22 '20 04:09 Sindhuja1295

Hello @simonbengtsson hope you are doing well.

I have implemented initial logic to split columns across pages and make a pull request please check it :)

Thanks

prpateldev avatar Oct 02 '20 07:10 prpateldev

Pls @simonbengtsson merge this

jcla490 avatar Jun 04 '21 15:06 jcla490

@prpateldev how we should use it ? please

nasim-alizai-pgl avatar Jan 26 '23 14:01 nasim-alizai-pgl

Do we have an example on how to use the split columns feature?

nsdotorg avatar Mar 08 '23 13:03 nsdotorg

https://github.com/simonbengtsson/jsPDF-AutoTable/blob/4c04f6a089b9dea919e84fee5fff649552cd49b8/examples/examples.js#L654-L662

mmghv avatar Oct 02 '23 17:10 mmghv