Skip to content

Class "FPDF" not found in FpdfTpl.php #168

@kdisarno

Description

@kdisarno

I'm not an expert on all things pdf, but I've run into an issue in an environment I'm setting up from scratch. I've downloaded both fpdf and FPDI from composer, v1.85 and v2.3.7 respectively.

It looks like FpdfTpl is extending FPDF using \FPDF. But when fpdf is downloaded from composer, the namespace is Fpdf. Therefore the class declaration needs to be class FpdfTpl extends \Fpdf\Fpdf. Has FPDI and fpdf gotten out of sync with the namespaces changes?

How best to work around this? I hate to commit the class declaration change to my local vendor folder.

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