Using a template parser to create a page and sending the output to dompdf work great too! It’s only a matter of following the instructions on their website to set it up.
The only problem that I ran into had something to do with my own template parser.