HTML-View of PDF-Template

Is it possible to get the plain HTML view from the generated PDF?
For developing custom templates this would be awesome for analysing with Firebug…

/index.php/guest/view/generate_quote_pdf/NCpdck1wZYEgjb3 as plain HTML/CSS

Take a look at the mpdf helper file. This file loads the PDFs so it should be possible to get the templates from there.

Adding <?php exit; ?> at the end of the current template template file (ex InvoicePlane.php) cancels the pdf creation and displays the template as HTML.

A bit crude, but it works.

2 Likes

Ha. That is such an easy fix. It would be great to integrate a switch for that in ipconfig.php (e.g. ENABLE_PDF_DEBUG)