diff --git a/pdf/creator/table.go b/pdf/creator/table.go index a38d006b..a191fb94 100644 --- a/pdf/creator/table.go +++ b/pdf/creator/table.go @@ -480,8 +480,8 @@ func (cell *TableCell) SetBorder(style CellBorderStyle, width float64) { } // SetBorderColor sets the cell's border color. -func (cell *TableCell) SetBorderColor(color rgbColor) { - cell.borderColor = model.NewPdfColorDeviceRGB(color.r, color.g, color.b) +func (cell *TableCell) SetBorderColor(col Color) { + cell.borderColor = model.NewPdfColorDeviceRGB(col.ToRGB()) } // SetBackgroundColor sets the cell's background color.