PDF::Create - text colour

Discussion in 'Perl Misc' started by Graham Drabble, Jun 4, 2009.

  1. Hi all,

    I've been asked to modify a bunch of Perl scripts that use PDF::Create
    to generate PDF documents. Currently all the text is in black and I
    need to be able to change the colour of some of it.

    Is this possible using PDF::Create? I can't see anything in the docs.
    Alternatively what would people recommend using?

    --
    Graham Drabble
    http://www.drabble.me.uk/
    Graham Drabble, Jun 4, 2009
    #1
    1. Advertising

  2. Graham Drabble

    smallpond Guest

    On Jun 4, 5:30 pm, Graham Drabble <> wrote:
    > Hi all,
    >
    > I've been asked to modify a bunch of Perl scripts that use PDF::Create
    > to generate PDF documents. Currently all the text is in black and I
    > need to be able to change the colour of some of it.
    >
    > Is this possible using PDF::Create? I can't see anything in the docs.


    Look harder:

    setrgbcolor r g b
    Set the color of the subsequent drawing operations. R,G and B is a
    value between 0.0 and 1.0.
    smallpond, Jun 4, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. vasudevram
    Replies:
    0
    Views:
    530
    vasudevram
    Jul 22, 2006
  2. Replies:
    0
    Views:
    349
  3. Ricardo Pog
    Replies:
    1
    Views:
    400
    Austin Ziegler
    Mar 26, 2008
  4. Sean Nakasone
    Replies:
    1
    Views:
    342
    Farrel Lifson
    Apr 14, 2008
  5. jodleren
    Replies:
    2
    Views:
    188
    Thomas 'PointedEars' Lahn
    Jan 12, 2008
Loading...

Share This Page