Skip to content

Error when setting the pages to be merged  #21

@vahiddabbagh

Description

@vahiddabbagh

$pdf->addPDF('path/to/source/file.pdf', '1,2', 'vertical')

Showing following error:
Undefined index: w

I think it is a typo mistake in the PDFMerger.php on line 85:
$fpdi->AddPage($file->getOrientationCode(), array($size['w'], $size['h']));

If you change the $size['w'] => $size['width'] and $size['h'] => $size['height'] the problem will be fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions