Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
18 changes: 12 additions & 6 deletions lib/table/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -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 {
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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();
}
}
Expand Down