TPPDF icon indicating copy to clipboard operation
TPPDF copied to clipboard

Table cell border line color is not same

Open shawn736 opened this issue 3 years ago • 1 comments

What did you do?

Hi, I want to build a table pdf.

What did you expect to happen?

I expect the cell bottom line color is same black.

What happened instead?

But, the cell bottom line color is not same. Some lines are light gray. Some lines are black. IMG_53C1759BDC42-1

TPPDF Environment

**TPPDF version: 2.3.5 **Xcode version: 12.5 **Swift version: 5.4

Demo Code / Project

    table.style.outline = .none
    let tableCellStyle = PDFTableCellStyle(colors: (UIColor.clear, UIColor.black), borders: PDFTableCellBorders.init(left: .none, top: .none, right: .none, bottom: .init()), font: UIFont.boldSystemFont(ofSize: 12))
    table.style.rowHeaderStyle = tableCellStyle
    table.style.columnHeaderStyle = tableCellStyle
    table.style.contentStyle = tableCellStyle
    table.style.footerStyle = tableCellStyle
    table.style.alternatingContentStyle = tableCellStyle

shawn736 avatar May 18 '21 02:05 shawn736

thank you for reporting this bug.

I assume this issue is caused by <1.0 pixel line widths. Can you please add the generated PDF too?

philprime avatar Aug 25 '21 11:08 philprime

Closed due to inactivity

philprime avatar Dec 03 '22 14:12 philprime