You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Bug Fixes
- Fixed critical bug where table headers were rendering below data rows instead of above
- Root cause: Incorrect handling of PDF coordinate system (Y-axis grows upward from bottom)
- Comprehensive coordinate system overhaul in Table.ts affecting 8 critical locations
### Changes
- Changed rect(x, y, width, height) to rect(x, y, width, -height) for downward drawing (3 locations)
- Inverted calculateTextY() logic to properly position text in downward-drawing cells
- Fixed header border Y position from y + height to y - height
- Fixed row border Y position from y + height to y - height
- Corrected vertical border drawing direction
- Rewrote outer borders logic to properly handle top/bottom/left/right borders
### Testing
- Added comprehensive table test suite with 39 new unit tests
- Total test count increased from 229 to 268 tests
- All tests passing (268/268)
- Coverage includes: basic rendering, column handling, styling, alignment, borders, page breaks, edge cases
- Browser compatibility verified with test-tables-browser.html
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@pdfstudio/pdfstudio",
3
-
"version": "0.3.1",
3
+
"version": "0.3.2",
4
4
"description": "Professional PDF generation library for Node.js and Browsers. Features native charts, advanced vector graphics, QR codes, interactive forms, and complete TypeScript support.",
0 commit comments