[Answered ]-Invisible table borders ReportLab

2👍

I figured out the answer, I just made the table borders and cells to the colour white.

pdf_table.setStyle(TableStyle([('INNERGRID', (0, 0), (-1, -1), 0.25, colors.white), ('BOX', (0, 0), (-1, -1), 0.25, colors.white)]))


Imports needed:

from reportlab.lib import colors
from reportlab.platypus.tables import TableStyle

Further reading about tables here.

Leave a comment