pdfmake icon indicating copy to clipboard operation
pdfmake copied to clipboard

Pdf layout breaks when table has headerRows = 0 and keepWithHeaderRows > 0

Open fe-cj opened this issue 7 months ago • 0 comments

In the example below, there is just one table but if there are more elements it also affects them. So for example:

var dd = {
	content: [
	{
            table: {
                body: [
                    [ 'A', 'B' ],
                    [ 'C', 'D']
                ],
                keepWithHeaderRows: 1,
                headerRows: 0
            }
        },
	]
	
}

image

When headerRows is set to 1, it does it correctly:

var dd = {
	content: [
	{
            table: {
                body: [
                    [ 'A', 'B' ],
                    [ 'C', 'D']
                ],
                keepWithHeaderRows: 1,
                headerRows: 1
            }
        },
	]
	
}

image

fe-cj avatar Jul 21 '24 12:07 fe-cj