-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snaking Columns #604
Comments
Also requesting this feature. Did you manage to implement it andrew? |
Yes, this is definitely a needed feature for my work. |
+1 |
+1 |
3 similar comments
+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. |
@ninasaveljeva, You're right and even in the pdfkit demo it shows snaking column: @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:
|
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 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
👍 I'd need this feature too! |
me too ! |
me to! |
me too! |
+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: Sample Document Definitionvar dd = {
content: [
{
columns: [
{
table: {
widths: ['*', '*'],
headerRows: 1,
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'],
],
},
},
],
},
],
}; Guidance from AII 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. Describe the project structure and logic.
How does pdfmake handle content overflow across pages?
How can one implement a solution to this outstanding issue?
|
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! Text Content
Table Content
|
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.
The text was updated successfully, but these errors were encountered: