Custom extensions on AOS_PDF_Templates, update safe generatePdf.php

Hello community,

Im just working on a solution for a PDF-Report which needs two different headers for the first page an the following pages.
dev- and target-system are version 7.11.18, Sugar Version 6.5.25 (Build 344) running on Debian 10.
I found that the integrated mPDF library supports this in different ways.
I decided to use the HTML alternative (see https://mpdf.github.io/html-support/custom-html-tags.html).
With two customizations (in costom/modules/AOS_PDF_Templates/views/view.edit.php and modules/AOS_PDF_Templates/generatePdf.php) I succeded to conditional (based on prefix to the template-name) eliminate tinyMCE which eats these custom HTML-tags.
So far it’s done, but I could not find a way to get my customized generatePdf.php running under custom/modules/AOS_PDF_Templates/ .

I’d like to bring this into a moduleLoader loadable zip.

Thank you in advance for tips and tricks :grinning:

1 Like
2 Likes

Such cool, was piece of cake, first forgot QRR, but then it ran right away, thank you very much.

1 Like