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


#1

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


#2

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


#3

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


#4

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


#5

Hi Stephen,

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

that worked for me.

Regards
Venkat


#6

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


#7

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


#8

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