Re: $this->setColor for PDF helper

2007-08-02 Thread Unite
I went to the origonal fpdf site and saw wasn't updated since 2004! Ill have a look through this and see how it goes. Just a couple questions 1) Can it support RGB from 0,0,0 to 255,255,255 2) Can I effectivly draw things to the PDF ( eg - putPixel(x,y) ) 3) Is there documentation with all the fu

Re: $this->setColor for PDF helper

2007-08-02 Thread Samuel DeVore
have you tried the fpdf one? http://bakery.cakephp.org/articles/view/pdf-helper-using-fpdf I'm working on updating these articles this weekend. So if there are any comments or ideas please send them my way Sam D On 8/2/07, Unite <[EMAIL PROTECTED]> wrote: > > Found out the problem. Helper onl

Re: $this->setColor for PDF helper

2007-08-02 Thread Unite
Found out the problem. Helper only seems to know certain colours and if it doesnt know the colour makes it white. It is like it only knows 6 colours. Time to find a new PDF helper. Any advice? --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: $this->setColor for PDF helper

2007-08-02 Thread grigri
I got caught out on this too. The Ros Pdf system takes floating-point colour values, from 0.0 to 1.0. So for red (#FF) you'd say $this->setColor(1.0, 0.0, 0.0); and for Cosmic Latte #FFF8E7 or rgb(255, 248, 231) you'd say: $this->setColor(255/255, 248/255, 231/255); I've overridden the Pd

$this->setColor for PDF helper

2007-08-02 Thread Unite
Dunno if anyone knows here but there proberbaly are lots of people who do know or used it before. My problem is that $this->setColor function from a pdf helper isnt doing what its ment to do. Sometimes it will give the "graphics" a colour other times will ignore it and remain white. Heres a snip