-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
The way rtl is supported in pdfkit is by passing features prop to the text function
Please allow to pass the features props to the table function. Something like
const table = {
title: "כותרת",
subtitle: "Subtitle",
headers: [ "Country", "Conversion rate", "Trend" ],
rows: [
[ "Switzerland", "12%", "+1.12%" ],
[ "France", "67%", "-0.98%" ],
[ "England", "33%", "+4.44%" ],
],
textFeatures: ['rtla']
}
And pass it here
Lines 555 to 560 in 707a191
| this.text(header, | |
| lastPositionX + (cellPadding.left), | |
| startY, { | |
| width: Number(columnSizes[i]) - (cellPadding.left + cellPadding.right), | |
| align: 'left', | |
| }); |
When I think about it, allowing setting align is also a good idea
Metadata
Metadata
Assignees
Labels
No labels