Create PDF files from HTML using PHP and mPDF | Quick programming tutorial
Вставка
- Опубліковано 18 вер 2024
- Learn to create your own PDF files using PHP and mPDF library.
more tutorials:
make a social website from scratch:
• Social Website from sc...
all crash courses:
• JSON Crash Course in P...
code a live chat app in PHP and JavaScript:
• Live chat app from scr...
make an eCommerce website from template:
• #00 PHP Ecommerce webs...
convert an HTML template to PHP website:
• HTML Template to PHP W...
simple signup and login system & security:
• Simple signup and logi...
crop images with PHP:
• PHP - Web Design - How...
PHP Object Oriented Programming basics:
• #00 PHP Object Oriente...
Chart or graph using SVG:
• HTML Chart using SVG, ...
Responsive web design:
• Responsive Web Design ...
clean pretty URLs:
• PHP - How to get prett...
support me on patreon:
/ quickcode
my facebook:
quickcode
Please dear UA-cam, notify this video to all persons on this planet. Huge respect to you sir 🙏🙏
thank you. i much appreciate it :))
Just FYI, the $ (dollar sign) in front of a command tells the reader that the command can be ran without elevated rights. It doesn’t need to be typed, it’s there for information purposes. Then, there’s the # sign, which tells the reader that the command should be ran as root.
PS: Thumbs up for the smooth explanations and narration!
Thanks
All your videos are so easy to understand, and complete, master teatcher, huge respects
Many thanks. i appreciate the compliment
Even though you are a developer, you explain so well!
😅
🤣thanks for the compliment. Feedback is everything
@@QuickProgramming I am working on mPDF right now, and your tutorial was the kickstarter. Thanks bud.
Thank you soooo much, I was searching for this from last few days..
Most welcome 😊
Thanks buddy, continue.....😎
thanks, will do
Thank you very much! I've learnt a lot. It's great to have you trying this out like we'd do as beginners. Thank you!
You're very welcome! glad to hear it
Sir you are a life saver, quality content!
You're most welcome :) and thanks for your feedback
@@QuickProgramming No problem, if you have time can you help with this? I'm trying to populate (print table data ) using a php loop, it won't work inside writeHTML(); can you make a video on how to do that?
Just to share with everyone, instead of 'composer require mpdf/mpdf', once you get an error while installing mpdf try this command instead: composer require mpdf/mpdf v8.1.2 -W, then restart your apache webserver from XAMPP control
Fatal error: Array and string offset access syntax with curly braces is no longer supported in C:\xampp\htdocs\gpta_system\vendor\mpdf\mpdf\mpdf.php on line 2629
Not only this but there are over 200+ code errors in mpdf.php
do you have an updated version for this?
im getting this error -> Fatal error: Uncaught Error: Class "Mpdf\Mpdf" not found in C:\xampp\htdocs\jobs\cvs\index.php:5 Stack trace: #0 {main} thrown in C:\xampp\htdocs\jobs\cvs\index.php on line 5
how can i fix it
You need to enable your php extension called "gd" and "mbstring" then reinstall mpdf
Hey, great tutorial. Just fyi, tag isn't supported in HTML5. Once again, nice tutorial though. :)
yeah, so it seems. am not sure how but when testing it had worked just fine. thanks for the compliment :)
Great tutorial, sent you a msg on patron.
Got it!
Thank you 😊. Can we use file get content function and wrote our html there ?
Yes, definitely
@@QuickProgramming so this going be easy then I was thinking. We can use str to replace function with custom variables, just like emails.
Thanks for doing it
Thank you bro😊
you're most welcome :))
Awesome! Can you create it with PDO and MVC, PHP using two or more buttons to print two or more tables?
Muito bom, obrigado
ajudou-nos mesmo
Sir currently i`m faciing mpdf "J" font issue its showing "J" in Lowercase in pdf
veny nice explanation but render without with border is this possible
thank you
you're very much welcome :)
why this fatal error show me===> (Fatal error: Uncaught Error: Class "Mpdf\Mpdf" not found in C:\xampp\htdocs\pdf\index.php:35 Stack trace: #0 {main} thrown in C:\xampp\htdocs\pdf\index.php on line 35)
unfortunately for me, I couldn't install mpdf with composer, time out 300s!!!
honestly, I did not understand the error, despite having tried several times
here, i copied it on the link below. just make sure the vendor folder is in the same folder as your project files when you extract drive.google.com/file/d/1WwGgRxS1g12JiZ7Gyz_9Qa0whQc7AfJ_/view?usp=sharing
@@QuickProgramming I am so gratfull, thanks a lot
@@bekkarghezal6173 you're most welcome
@@QuickProgramming OMG thanks! I was getting "Class "Mpdf\Mpdf" not found" error for days... I will save your vendor folder forever :D
"message": "Undefined type 'Mpdf\\Mpdf'.",
I'm getting this error message. Please help
"message": "Array and string offset access syntax with curly braces is no longer supported",
thank you
how to use mPDF in vuejs3?
why the \Mpdf\Mpdf(); is not fuctioning to me??
check the folder structure to make sure files are in order
how if mpdf with laravel ?
yes you can use it with laravel
It's Hello World ... NOT
why my image is [x]?
532 Cronin Underpass
Code php for reservation pleaaase
you did not explain what the website does or shown me any sample website. unfortunately i cant make what i dont understand
23 langage php tp reservation en ligne
This is a kind ok web site of reservation online
You talk too much. Be to the point only man.
Dont complain. Learn to find a solution. Watch the video at 1.5x speed. Problem solved
@@QuickProgramming I already solved my problem by seeing some other videos. Anyway it was just a friendly suggestion so that your future videos can be improved.
@@smshahriarkabir good you found a solution
Mpdf.pdf