pdfmake
pdfmake copied to clipboard
Snaking Columns
There appears to be no way to get a single block of text (and other elements) to overflow from one column into the next column (snaking columns). Currently, any overflow is pushed to the same column on the next page.
Would this functionality be difficult to add? I am surprised it is not already a feature as it is a core feature of PDFKit (however only text is supported).
I am not very familiar with the PDFMake codebase (have just had a few hours looking through it) and would be willing to have a go at adding this feature. Before I attempt this, if anyone familiar with the codebase could make any comments regarding the architectural feasibility of this enhancement or the reasoning behind columns having been implemented as discrete containers, it would be greatly appreciated.
I would also consider contributing (financially) to have this feature added if that idea appeals to anyone!
Thanks in advance.
Also requesting this feature.
Did you manage to implement it andrew?
Yes, this is definitely a needed feature for my work.
+1
+1
+1
+1
+1
+1 Much needed feature
@liborm85 any updates on this feature? Looks like this open issue hasn't been touched in quite some time.
I was able to made floating columns only with raw PDFKit. Why pdfmake does not support this feature while PDFKit does and pdfmake based on pdfkit?
I was able to made floating columns only with raw PDFKit. Why pdfmake does not support this feature while PDFKit does and pdfmake based on pdfkit?
@ninasaveljeva, You're right and even in the pdfkit demo it shows snaking column: http://pdfkit.org/demo/browser.html
@liborm85 Any insights/updates related to this?
@corneliouzbett Your example doesn't work. I tried expanding the first column to see if it overflows to the next column, and the result is that it goes to next page instead. Try it on your own:
var dd = {
content: [
{
style: 'tableExample',
layout: 'noBorders',
table: {
widths: ['*', '*'],
body: [
['Parent 1', 'Parent 2'],
[
[
{
table: {
widths: ['*', '*'],
body: [
['Col1', 'Col2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
['1', '2'],
]
},
}
],
[
{
table: {
widths: ['*', '*'],
body: [
['Col3', 'Col4'],
['3', '4'],
['3', '4']
]
},
}
]
]
]
}
}]
}
Would love to see this feature as well. There seems to be interest but it's been a while - any updates on this feature?
need it in my work, +1
I could also use this feature
I need this also
@liborm85 Any updates about this feature?
@liborm85 Any updates about ths feature?
I'm also incredibly interested in this and I'm willing to financially help achieve this functionality.
@liborm85 Any updates about ths feature?
This would be very useful. I need this and currently don't have a work-around.
+1
+1
+1
+1
+1
+1
:+1: I'd need this feature too!
👍 I'd need this feature too!
me too !
me to! 6 years from opening this issue...