Closed skills-up closed 5 years ago
You are supposed to normally remove yii2 debug component out from yii2 app config in your production environment. Not sure why you need that in your production. Anyway,, irrespective of above note that the mpdf library will convert solely the HTML markup generated by you to PDF You need to isolate the html content you pass to mpdf without rendering other scripts or css like yii2-debug. (E.g. rightly using renderPartial instead of renderAjax)
Hi,
Any PDF that I generate using this option appends the debug toolbar CSS mark-up after the main content.
My pdf controller function is as below: