diff --git a/CHANGELOG.md b/CHANGELOG.md index 26da5504..d72b68c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ - Fix garbled text copying in Chrome/Edge for PDFs with >256 unique characters (#1659) - Fix Link accessibility issues +- Fix Table Accessibility Issue: Operator CS/cs not allowed in this current state + ### [v0.17.2] - 2025-08-30 diff --git a/lib/table/render.js b/lib/table/render.js index e9a80d8c..751bb6fc 100644 --- a/lib/table/render.js +++ b/lib/table/render.js @@ -34,8 +34,9 @@ function renderCell(cell, rowStruct) { if (cell.backgroundColor != null) { this.document .save() + .fillColor(cell.backgroundColor) .rect(cell.x, cell.y, cell.width, cell.height) - .fill(cell.backgroundColor) + .fill() .restore(); } @@ -173,8 +174,9 @@ function renderBorder(border, borderColor, x, y, width, height, mask) { doc .save() .lineWidth(border.top) + .strokeColor(borderColor.top) .rect(x, y, width, height) - .stroke(borderColor.top) + .stroke() .restore(); } } else { @@ -184,8 +186,9 @@ function renderBorder(border, borderColor, x, y, width, height, mask) { .save() .lineWidth(border.top) .moveTo(x, y) + .strokeColor(borderColor.top) .lineTo(x + width, y) - .stroke(borderColor.top) + .stroke() .restore(); } // Right @@ -194,8 +197,9 @@ function renderBorder(border, borderColor, x, y, width, height, mask) { .save() .lineWidth(border.right) .moveTo(x + width, y) + .strokeColor(borderColor.right) .lineTo(x + width, y + height) - .stroke(borderColor.right) + .stroke() .restore(); } // Bottom @@ -204,8 +208,9 @@ function renderBorder(border, borderColor, x, y, width, height, mask) { .save() .lineWidth(border.bottom) .moveTo(x + width, y + height) + .strokeColor(borderColor.bottom) .lineTo(x, y + height) - .stroke(borderColor.bottom) + .stroke() .restore(); } // Left @@ -214,8 +219,9 @@ function renderBorder(border, borderColor, x, y, width, height, mask) { .save() .lineWidth(border.left) .moveTo(x, y + height) + .strokeColor(borderColor.left) .lineTo(x, y) - .stroke(borderColor.left) + .stroke() .restore(); } }