Skip to content

Left and bottom line widths not working for filled cells (cells drawn over the previous cells borders) #1091

@Re595

Description

@Re595

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:

Image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions