jsPDF-AutoTable
jsPDF-AutoTable copied to clipboard
Split column across pages if not enough space
I want to print remaining columns on a new page if it is not enough horizontal space to show it on one page.
I assume you would like to have something like this?
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?
Hi @simonbengtsson
The above sample PDF is exactly what is required. I edit the ticket now to make it a request feature. Thanks.
Great 👌 Simplified the issue a bit now.
Watching this issue, I have the same preferences.
Hi @simonbengtsson ,
Is there any update on this?
Thanks and regards
Hi! As far as I know no one is working on it.
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
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.
Hi @simonbengtsson ,
if I have understood you correctly, you want me to make the proposed/requested changes and make a merge request? Regards
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
Except for increasing page size or making font size smaller I don't know of an alternative solution.
Hi i have 139 columns using jspdf-autotable, how to adjust or split column or is there any alternate solution?
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.
I can help, I will start working on it
Sounds great!
Hi, My requirement is to support 100 columns in jspdf-autotable plugin? is it possible?
Hi, My requirement is to support 100 columns in jspdf-autotable plugin? is it possible?
yes but need to modify the plugin code
Can i have the sample please? Where i have to change the font sze in plugin and page size?
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.
I can help, I will start working on it
Hi @prpateldev Thanks. Appreciate the help.
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,
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
Pls @simonbengtsson merge this
@prpateldev how we should use it ? please
Do we have an example on how to use the split columns feature?
https://github.com/simonbengtsson/jsPDF-AutoTable/blob/4c04f6a089b9dea919e84fee5fff649552cd49b8/examples/examples.js#L654-L662