[Za-pm] PDF Text Colour using PDF::API2

Theunis de Klerk theunis at ixpress.co.za
Wed Jul 28 09:38:27 CDT 2004


Hi Everyone,

I am busing using the perl module PDF::API2 to generate pdf's.
Generating the PDF's is fine except for one thing; when I try and set
the text to be a certain colour the text stays black.

According to the examples and the documentation (which is realy bad) all
you need to do is pass it a value for the specific colour like so :

$text->text_center( "This colour is red",-color=>["red"],-underline=>1 )
;

But this doesn't work. Has anybody used this before and can possibly
shed some light on it?

Cheers
Theunis De Klerk

         (o) (o) 
------uuuu-(_)-uuuu-------------
I walked into a library once and asked the librarian 
where the self-help sections was,
she refused to tell me cause it defeated the point.


-- 
* Mail scanned by Inflex *

Queries to: mailadmin at ixpress.co.za



More information about the Za-pm mailing list