Row/column height seems not to work
See original GitHub issueI’ve tried setting the height on the row and the columns, but nothing seems to work. The data dictates the height. I’m using master branch (0.8).
var doc = pdfjs.createDocument({
font: fonts.openSansRegular
});
var table = doc.table({
width: 595.296,
height: 841.896,
widths: ['33.3%', '33.3%', '33.3%']
});
var row = table.tr();
data.forEach(function (item, index) {
row.td(item.ownerName + '\n' + item.address + '\n' + item.city + (item.zip ? ', ' + item.zip : ''), {
height: 300
});
// Create new row after every third column (3 column setup)
if ((index + 1) % 3 === 0) {
row = table.tr();
}
});
Issue Analytics
- State:
- Created 8 years ago
- Comments:28 (25 by maintainers)
Top Results From Across the Web
Wrap text not adjust row height - Office - Microsoft Learn
In Microsoft Office Excel 2007 and later versions, click the Home tab, click Formatin the Cells group, and then click AutoFit Row Height....
Read more >How to change and AutoFit row height in Excel - Ablebits
On the Home tab, in the Cells group, click Format > Row Height. In the Row height box, type the desired value, and...
Read more >Why Can't My Row Height Automatically Adjust?!
If the entire row is empty then AutoFit will adjust to your default row height (NOTE: using AutoFit on an empty column will...
Read more >How to Lock Row Height & Column Width in Excel (Easy Trick)
Similarly, if you select any cell in the worksheet, click the Home tab, and then click on the Format option, you would see...
Read more >How to fix the height of rows in the table? - GeeksforGeeks
The height of rows 'tr' in a table can be fixed very easily. This can be done by adding the height attribute in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve pushed a
minHeight
option today @chadRoberge Since those are features I am not needing for my own use-case, no ETA, sorryWould love to get both of these back. Finally upgraded due to node versions, but now having issues due to both of these missing.