I've got a component in joomla that exports to PDF, the issue that i am experiencing would be that the PDF released is unreadable since the html from the Joomla! page in placed after and prior to the pdf itself.
I've designed a standard structure of the component and refer to it as like
com_listado_factura the title from the component and
exportar_factura the purpose of the controller that exports to pdf.
I have looked everywhere and could not discover the solution, thanks
The answer ended up being to call: