Skip to content
Advertisement

PHP FPDF changing font size in specific are only

I have set font size for over all pdf to 10, Question is if I want to change the font size for the specific area of pdf without changing the font size over all, can it be done? See below code, I want to change the font size in these area $pdf->SetXY(17, 80) ;

JavaScript

Advertisement

Answer

Just do it like this:

JavaScript

You could see the setting for setFont in here: http://www.fpdf.org/en/doc/setfont.htm

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement