feature/excel #1

Open
mmintel wants to merge 84 commits from feature/excel into main
51 changed files with 4 additions and 4 deletions
Showing only changes of commit e524c9faf6 - Show all commits

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -2736,8 +2736,8 @@ function drawTableChunked(args: {
// Dense table style (more columns, compact typography)
// IMPORTANT: header labels must stay on a single line (no wrapped/stacked headers).
const headerH = dense ? 16 : 16;
let rowH = dense ? 16 : 16; // Increased to prevent row overlap
const headerH = 16;
let rowH = 14; // Strict row height constraint so tables look identical vertically
let bodyFontSize = dense ? 6.5 : 8;
let headerFontSize = dense ? 6.5 : 8;
@@ -2876,7 +2876,7 @@ function drawTableChunked(args: {
if (isDenseManyColumns) {
bodyFontSize = Math.max(5.3, Math.min(bodyFontSize, 5.8));
headerFontSize = Math.max(5.1, Math.min(headerFontSize, 5.5));
rowH = Math.max(9, Math.min(rowH, 10));
// Leave rowH unchanged so table stripes remain visually consistent across pages
cellPadX = 3;
}
@@ -3095,7 +3095,7 @@ function drawTableChunked(args: {
// Don't truncate - use auto-fit widths to ensure everything fits
page.drawText(noWrap(txt), {
x: x + cellPadX,
y: y - (rowH - 5), // Adjusted for new rowH of 16
y: y - (rowH / 2 + bodyFontSize / 2 - 1), // Center vertically in row
size: bodyFontSize,
font,
color: darkGray,