Convert HTML to PDF

An Easy to Use Course


Experiments with mPDF

mPDF is a PHP class which generates PDF files from UTF-8 encoded HTML.

Use the well documented HTML/CSS & JavaScript languages to create web pages and then convert them to PDF.

mPDF is very powerful and allows you to add “PDF functionality” such as:

You can downoad mPDF from GitHub

Creating your first PDF

Wrap HTML in PHP and mPDF and you are ready to go.
Take me there...

Adding some CSS Styles

Add some CSS to give your PDF some style.
Take me there...

Configuring mPDF Properties

With mPDF you can add features such as bookmarks, watermarks and more.
Take me there...

Fillable PDF Forms with mPDF

Convert HTML form objects into interactive PDF forms.
Take me there...

All code on this site can be used without warranty.

Copyright © 2018 osuch.com