TCPDF is trying to send new headers and the browser is complaining about the fact that headers have already been sent. That is why I need to figure out how to keep YII2 from sending anything.
There are 4,495 ( roughly… ), extensions to deal with PDF. Do you have one to two that you actively use and recommend?
MPDF looks like a popular package, but I don’t need/want to turn html into a pdf.
I actually need to generate a PDF file with very specific layout requirements that I am importing from an older system. While I could probably reformat the reports into html and print them, I already have the layout information in a format ready for page layout and converting the reports would be a very time consuming project.
TCPDF looks like it gives me all the control of the layout that I need. Plus, I can sent it html later if I need to.
I just need to figure out how to keep YII from spewing out anything before the content/pdf headers.