tags:

views:

27

answers:

1

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?

A: 

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)
shamittomar
ok but how can I specify that I would only color 'hello' here: $db_data[] = array('first' => '', 'second' => 'hello');
anonymous123
How can I also use the tag <s></s> and display the effect in the pdf file?
anonymous123
@anonymous123, call `setColor` with desired color just before displaying hello and then again after displaying hello with original color.
shamittomar
inside the array()? HERE:$db_data[] = array('first' => '', 'second' => 'hello'); ?
anonymous123
Go and first learn the PHP and how to output data.
shamittomar