Tcpdf html2pdf library (for creating the patient report) - how to set font

The patient reports are not fitting on the pdf reports, is there any way to control the font size of this pdf documents?

Regards
Venkat

sorry, i think you can only adjust the margins under Admin->Globals->PDF

Hi Stephen,

I changed the margins and that helped a little but not all the way, so I am thinking if I can adjust the font size. Is it possible to change the code to adjust the font?

Thank you
venkat

here’s a code reference openemr/tcpdf_autoconfig.php at f8d686114f07e9dac4641dcbace2c9a3df07e5b7 · openemr/openemr · GitHub

Hi Stephen,

It turns out I need to change .text font size here : interface/themes/style_pdf.css

that worked for me.

Regards
Venkat

Hi @vambati ,
Is this something that we should think of fixing in the main codebase?
thanks,
-brady

Hi Brady,

That will be great. If we can make this as one of the settings in Admin->Globals->PDF. I can also make this change and send you the branch for review, please let me know.

Best Regards
Venkat

Hi @vambati ,
Definitely send the change for review.
thanks,
-brady