Skip to content

Declaration of setasign\Fpdi\FpdfTplTrait::setPageFormat($size, $orientation) should be compatible with TCPDF::setPageFormat($format, $orientation = 'P') #14

@edwinmugendi

Description

@edwinmugendi

I'm getting this error:

Declaration of setasign\Fpdi\FpdfTplTrait::setPageFormat($size, $orientation) should be compatible with TCPDF::setPageFormat($format, $orientation = 'P')

// and now we can use library

$front = '/home/sapama/projects/web/erp/public/media/erp/upload/cards/front-18980.pdf';
$back = '/home/sapama/projects/web/erp/public/media/erp/upload/cards/back-18980.pdf';
$card = '/home/sapama/projects/web/erp/public/media/erp/upload/cards/18980.pdf';

    // and now we can use library
    $pdf = new \Jurosh\PDFMerge\PDFMerger;

    //Add as many pdfs as you want
    $pdf->addPDF($front, 'all','vertical')
            ->addPDF($back, 'all','vertical');


    //Call merge, output format `file`
    $pdf->merge('file', $card);

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