CakePHP 3 and FPDF


David Fava

David Fava


How to remove unused Docker images. 24th September, 2018

Setting up Graylog behind Traefik (SSL with Let’s Encrypt). LDAP auth through FreeIPA. 23rd September, 2018

CakePHP 3

CakePHP 3 and FPDF

Posted on .

FPDF is a PHP class which allows to generate PDF files with pure PHP. which can be easily integrated in our CakePHP 3 app.

Install FPDF via composer:

Add this at the top of our controller file:

Create a test PDF in one of your actions:
David Fava

David Fava

  • user

    AUTHOR clarel

    Posted on 2:08 am October 17, 2017.

    I’m new on Cakephp, and i’m trying to import this library.
    I did exactly what u said in your steps, and still doesnt work:
    “Error: Class ‘Setasign\Fpdf’ not found ”

    is there anyway u can help me?
    i already tryig to import tecknickcom/tcpf and i’m unable to do!

    I’m working with A1 certificate and i need to open a pdf file and add a signature with my private_key!


  • This site uses Akismet to reduce spam. Learn how your comment data is processed.

    View Comments (1) ...