Skip to content

Error in table creation when showHeadings = false #84

@erycson

Description

@erycson

Hi, thank you so much for this incredible class.

My Workspace:
ezPDF: 0.12.41(Composer Version)

Border Error, Zoom 500%, showHeadings = false

Border OK, Zoom 500%, showHeadings = true

// Laravel Controller, 
$pdf = new Cezpdf('LETTER', 'portrait');
$data = [['col1', 'col2'], ['col1', 'col2']];
$pdf->ezTable($data, '', '', [
    'showHeadings'       => false,
    'gridline'           => EZ_GRIDLINE_ALL,
    'innerLineThickness' => 0.1,
    'outerLineThickness' => 0.1,
    'shaded'             => 2,
    'shadeCol'           => [0.8, 0.8, 0.8],
    'shadeCol2'          => [1.0, 1.0, 1.0]
]);
$output  = $pdf->ezStream(['compress' => 0]);
return response($output, 200)->header('Content-Type', 'application/pdf');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions