简体   繁体   中英

How to change the font color and size in creating pdf file using php

I'm using this as reference: http://www.ros.co.nz/pdf/

$db_data[] = array('first' => '', 'second' => 'hello');
I would want to make the text 'hello' color blue with font-size 12. How can I do this?

Please Read the Manual :

On page 20, following are defined:

 setColor(r,g,b,[force=0])
 setStrokeColor(r,g,b,[force=0])

And on Page 29:

 setFontFamily(family,options)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM