Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Border issue while using colSpan #2817

Open
adnan1515 opened this issue Dec 5, 2024 · 1 comment
Open

Border issue while using colSpan #2817

adnan1515 opened this issue Dec 5, 2024 · 1 comment

Comments

@adnan1515
Copy link

Tried this,
{ table:{ widths:['50%','50%'], body:[[{},{border:[], text:''}], [{border:[],colSpan:2, text:''}]] } }

but this does not work, as it generated border at bottom right

@jbouduin
Copy link

Other issue with borders and columnspan.

Pdfmake version: 0.2.16

Use the attached file to generate a pdf with two tables.
colspan-bug.json

The first table contains a colspan = 3 in the first row, border is set to [false, false, false, true].
Snippet:

{
  {
    "text": "Zeitraum",
    "bold": true,
    "alignment": "center",
    "border": [
      false,
      false,
      false,
      true
    ],
    "colSpan": 3
  },
  { },
  { }
}

resulting in:
image

The second table has no column span.
Snippet:

{
  {
    "text": "Zeitraum",
    "bold": true,
    "alignment": "center",
    "border": [
      false,
      false,
      false,
      true
    ],
  },
  {
    "text": "",
    "bold": true,
    "alignment": "center",
    "border": [
      false,
      false,
      false,
      true
    ],
  },
  {
    "text": "",
    "bold": true,
    "alignment": "center",
    "border": [
      false,
      false,
      false,
      true
    ]
  }
}

Resulting in
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants