print a letter based on template

hi,is there any tips or extension to print a letter based on a report template. (like pdf, openoffice ODT or irport) ?
i know phpmaker can print/export to PDF but the print is not based on a beautiful designed template i can build before (and setting field to get value throught database). i guess phpmaker only prints a pdf based on the webpage.
imagine you need to build a certificate or a letter with PHPmaker, how would you do ?PHPmaker allow us the way to add hyperlink to field (like myphpmakerproject/tablecar.php__list.id=45&parameter…) PHPmaker allow you to add whatever you want into “parameter” values (see hyperlink setting).
So, throught the list view, user can open an external page passing through the ID of the row with href link field.i search a way (extension, tips, opensource app lamp) to open a template, inject the data there and display a pdf og the result .
my dream :

myphpmakerproject/tablecar.php__list.id=45 & template=poster.PDF where phpmaker could put the field value directly into the PDF document to render.
In this example, i use PDF, but it could be ODT or docx document.so, do you have an idea how to perform such "report " feature with phpmaker ?

There is no such feature in PHPMaker. However, you can use Page_Exporting (load your template), Row_Export (insert data to your template) and Page_Exported (output your file) to export with your own code, see the topic Server Events and Client Scripts in the help file.You may also use your own ExportPdf and ExportWord class, similar to: https://discourse.hkvstore.com/t/phpspreadsheet-and-titles/723/1

@amiens80Don’t know if I understood it correctly but in my project I do need to print to pdf some “letters” with data from tables.
What I did was custom reports, with the needed tags, html and css, and some text is always the same, only changing the values I need accordingly to the record I choose… On report options I’ve chosen to show current record instead of multiple ones. Had also to adjust css in ewpdf.css …

Use a templating engine like smarty.