Hello,
I'm experimenting with using
dompdf in a Joomla component and I'm yet to find a clean way to get my component's HTML output out there as PDF (I'm working with MVC). My first approach was to:
- use format=dompdf as GET param
- put a full html structure in the view template
- render as pdf directly in my JView extension
Problem is that I won't benefit from any plugins modifying content (in worst case, plugin output will mix with the PDF content in the buffer).
I'm thinking of making a plugin that takes the document buffer onAfterRender, but I wonder if there is a clean way to add a subclass of JDocument to the Joomla library folder.