white text disappears in PDF

Phoca PDF - creating PDF documents in Joomla! CMS
ido_p
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 06 Apr 2010, 11:29

white text disappears in PDF

Post by ido_p »

Hi Jan,

I usually solve things on my own but I have been struggling with this for days.
The text in my site is white. When the pdf is generated it disappears. (white text on white background)
How do I change the color of the text in the generated PDF document?
I have tried modifying tcpdf.php function setcolor but it does not seem to make any effect.
I have also tried modifying phocapdf.php and did not get any result.
Can you please provide instructions on how to do this?

Also is it possible to remove the phocapdf link at the bottom of the generated pdf
after making a donation like in some of your other extensions?

I appreciate your help very much, and I would not have asked for it had I not spent over a week
trying to solve this on my own.
Thank you,
Ido Pas
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: white text disappears in PDF

Post by Jan »

Hi,

I think, there will be still problem, because you can define e.g. black color but then the tcpdf will use the css attribute and will overwrite it to white again.

So I think the solution is to find where the color is defined and paste some if clause, e.g. if this is normal content then add the white color and if this is pdf content then display black color.


Jan
If you find Phoca extensions useful, please support the project
ido_p
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 06 Apr 2010, 11:29

Re: white text disappears in PDF

Post by ido_p »

Hi Jan,
First of all, thank you for your quick reply.
I dont require an if statement as I am happy with the pdf always being in black text over white background.
Do you know maybe, how to over write the tcpdf so that the text color is always black?
Thank you again,
Ido
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: white text disappears in PDF

Post by Jan »

Hi, no :-( - this must be found in tcpdf class which is not small :-( (there are a lot of different settings which can modify this - styles, html tags, tcpdf functions, ... :-( )

Jan
If you find Phoca extensions useful, please support the project
Post Reply