PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File Formats » File_PDF » Bug #1767

Re-add _text_color functions

Details

Request #1767Re-add _text_color functions
Submitted2004-07-01 18:43 UTC
Fromabdul at solary dot net
Assignedmdjukic
StatusClosed
PackageFile_PDF
PHP Version4.3.7
OSLinux
Roadmaps(Not assigned)

Comments

[2004-07-01 18:43 UTC] abdul at solary dot net

Description:
------------
I'm using File_PDF-0.0.1 and the _text_color functions have been removed from original fpdf. See example code.

The fill color of the box is different from the color of the text. Actually I copied the original TextColor code from fpdf in my local copy, but I don't see why this functionality has been removed. Thank you.

Reproduce code:
---------------
$pdf->SetTextColor('rgb', 50,0,0);
$pdf->SetFillColor('rgb', 0,0,50);

$pdf->SetXY(1,5);
$pdf->Cell(1.2,.5,"TEXT",1,0,'C',1);

Expected result:
----------------
It can't be done as of the package version used.

Actual result:
--------------
I would like to make the fill of the box and the text different colors.