-
-
Notifications
You must be signed in to change notification settings - Fork 637
Open
Labels
Description
On head and body the lineWidth is working properly but on foot, if we use the same value, if doesn't print the same width besides having the same value
The code where can replicate the behavior is the following:
autoTable(doc, {
head: [headers],
body: tableData,
foot: [["Total Footer: ", "", "", 212.16]],
startY, // Starting Y position for the table
tableWidth: 150,
margin: { left: 25 }, // Margins
styles: {
font: "helvetica",
fontSize: 9,
cellPadding: 5,
},
headStyles: {
fillColor: [255, 255, 255],
textColor: [0, 0, 0], // Black text
fontStyle: "bold",
lineWidth: {
bottom: 2,
},
lineColor: [0, 0, 0],
cellPadding: 1,
},
bodyStyles: {
textColor: [0, 0, 0], // Black text
cellPadding: 1,
},
footStyles: {
fillColor: [255, 255, 255],
textColor: [0, 0, 0], // Black text
fontStyle: "bold",
lineWidth: {
top: 2,
},
lineColor: [0, 0, 0],
cellPadding: 2,
},
});
The result is on the following image:
