Open andrew-rutherford opened 8 years ago
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...
me too!
+1.
:+1: I'd also like this feature, I'm in a position to contribute financially. If there's a PDFMake maintainer that wants to contact me (it@ideliver.net.au) I can arrange it.
I'd need this feature too!
I need this feature as well. Below is the screenshot of the current behavior vs the desired behavior:
Elaborating on @memoryonrepeat's comment, you could also use the sample document definition object below in the pdfmake's playground if you want to see the lack of "snaking columns" behavior for yourself:
I am attempting to work on a solution for this issue. I am going to share comments I receive from AI here in case it inspires anyone or anybody wants to elaborate.
How did it go - any progress here @sepsol ?
@bergheim, sorry for the late response. Yes, I am still working on this, my fork is available here. So far, I was able to sort of create the desired behavior as shown below. But it is still very buggy and rough around the edges. Any contribution is welcome!
BEFORE | AFTER |
---|---|
![image](https://github.com/bpampuch/pdfmake/assets/47871887/ce84a015-4aaa-4061-abdc-ff4daa03602e) | ![image](https://github.com/bpampuch/pdfmake/assets/47871887/a3498f4d-3b41-4fc4-a49c-4980476a0fbc) |
BEFORE | AFTER |
---|---|
![image](https://github.com/bpampuch/pdfmake/assets/47871887/385af60e-9bd4-42f8-a0a3-9ef9e4cb1c0f) | ![image](https://github.com/bpampuch/pdfmake/assets/47871887/8c6d4455-c684-4d2d-9e9c-aab70ec705fd) |
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.