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

Fatal error: Class 'Html2Pdf' not found #498

sdobke opened this issue Aug 6, 2019 · 1 comment


Copy link

commented Aug 6, 2019

I first read 4 similar cases. None of those helped me.

Installed on Windows 10 using XAMPP with composer: composer require spipu/html2pdf
require_once(DIR .'/vendor/autoload.php');
use Spipu\Html2Pdf\Html2Pdf;

Also tried:
require_once(DIR .'/vendor/autoload.php');
require_once(DIR .'/vendor/spipu/html2pdf/src/Html2Pdf.php');


Tried on PHP 7.1 and 5.6.31
Always gives me: Fatal error: Class 'Html2Pdf' not found



This comment has been minimized.

Copy link

commented Aug 6, 2019

Is there any way to avoid anoying composer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.