Skip to content

ezTable causes max execution time when column width is to small #44

@ole1986

Description

@ole1986

Example:

error_reporting(E_ALL);
date_default_timezone_set('UTC');

include_once '../src/Cezpdf.php';
$pdf = new CezPDF("a4");

if(strpos(PHP_OS, 'WIN') !== false){
    $pdf->tempPath = 'C:/temp';
}

$array = array(
    array('p'=>'First','c'=>'Second')
);


// WORKING
//$pdf->ezTable($array, ['p' => 'Col 1', 'c' => 'Col 2'], null,['showHeadings' => 1,'evenColumns' => 0, 'cols' => ['c' => ['width' => 20] ] ]);
// NOT WORKING
$pdf->ezTable($array,array('p'=>'page','c'=>''), "Some Title", ['evenColumns' => 0, 'cols' => ['c' => ['width' => 15] ] ]);

if (isset($_GET['d']) && $_GET['d']){
    echo "<pre>";
    echo $pdf->ezOutput(TRUE);
    echo "</pre>";
} else {
  $pdf->ezStream();
}

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