Skip to content

Error when setting the pages to be merged  #21

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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