Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
edwinmugendi opened this issue Jun 16, 2021 · 0 comments

Comments

@edwinmugendi
Copy link

edwinmugendi commented Jun 16, 2021

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant