pdfmake icon indicating copy to clipboard operation
pdfmake copied to clipboard

Snaking Columns

Open andrew-rutherford opened this issue 8 years ago • 37 comments

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.

andrew-rutherford avatar Jun 10 '16 07:06 andrew-rutherford

Also requesting this feature.

Did you manage to implement it andrew?

matt-darby avatar Jul 11 '16 09:07 matt-darby

Yes, this is definitely a needed feature for my work.

robertknecht avatar Aug 12 '16 21:08 robertknecht

+1

RobertPrediger avatar Oct 10 '16 11:10 RobertPrediger

+1

michaelb87 avatar Jun 23 '17 14:06 michaelb87

+1

Michfou avatar Aug 29 '17 15:08 Michfou

+1

leontalbot avatar Aug 30 '17 18:08 leontalbot

+1

kngchn avatar Dec 06 '17 12:12 kngchn

+1 Much needed feature

aqelkp avatar Dec 27 '17 16:12 aqelkp

@liborm85 any updates on this feature? Looks like this open issue hasn't been touched in quite some time.

Quixomatic avatar Mar 15 '19 14:03 Quixomatic

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 avatar Apr 25 '19 09:04 ninasaveljeva

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?

Quixomatic avatar May 30 '19 13:05 Quixomatic

@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']
							]
						},
					}
				]
			]
		]
	}
}]	
}

memoryonrepeat avatar Aug 15 '19 06:08 memoryonrepeat

Would love to see this feature as well. There seems to be interest but it's been a while - any updates on this feature?

riacnhk avatar Jan 22 '20 21:01 riacnhk

need it in my work, +1

Luis945 avatar Feb 18 '20 15:02 Luis945

I could also use this feature

bsparacino avatar Mar 19 '20 18:03 bsparacino

I need this also

fmmendes avatar Apr 02 '20 23:04 fmmendes

@liborm85 Any updates about this feature?

MussaCharles avatar Apr 19 '20 11:04 MussaCharles

@liborm85 Any updates about ths feature?

virgileMaon avatar Jul 06 '20 05:07 virgileMaon

I'm also incredibly interested in this and I'm willing to financially help achieve this functionality.

nikolnikov avatar Jul 26 '20 23:07 nikolnikov

@liborm85 Any updates about ths feature?

AliMariam avatar Feb 01 '21 22:02 AliMariam

This would be very useful. I need this and currently don't have a work-around.

dwissing avatar May 18 '21 16:05 dwissing

+1

matsgm avatar Jun 11 '21 06:06 matsgm

+1

r-breu avatar Jun 17 '21 15:06 r-breu

+1

gfriesen98 avatar Sep 07 '21 19:09 gfriesen98

+1

jonnycraze avatar Oct 13 '21 13:10 jonnycraze

+1

asajadi84 avatar Nov 09 '21 16:11 asajadi84

+1

mjr21a avatar Apr 28 '22 11:04 mjr21a

:+1: I'd need this feature too!

erneu avatar May 09 '22 20:05 erneu

👍 I'd need this feature too!

me too !

MelanieMorin avatar Jul 07 '22 09:07 MelanieMorin

me to! 6 years from opening this issue...

Benni77 avatar Jul 11 '22 13:07 Benni77