I was searching a way to save a layout of my custom component as PDF.
I tried various libraries JS / PHP. What I wanted was utf-8 support, tables, images to be properly saved in the pdf file.
I spent the last day trying to integrate the DomPDF library to my component. I read numerous guides and howtos with no luck.
The major problem was that Joomla changed the Document Renderer library after version 3.8 (I am not 100% percent about the version) and the latest version of DomPDF which no longer requires the config file [config.inc.php].
In previous Joomla versions the following guide should work fine : Creating PDF views
So using the DomPDF in the default view, was a problem for me, because I wanted the option to have a link to download as PDF from my List view and from my Item view.
Finally I did it using a raw view and a new layout file for clean output.
I am open to any corrections, suggestions or any other improvement.
Thank you