tecnickcom / TCPDF

Official clone of PHP library to generate PDF documents and barcodes
https://tcpdf.org
Other
4.18k stars 1.51k forks source link

Text Shadow Blur Property #505

Open kpomservices opened 2 years ago

kpomservices commented 2 years ago

Hi

I am able to set the text shadow using the setTextShadow, but blur property for the text i am not able to set it in tcpdf.

Pls provide suggestion / help for setting the blur property for the text shadow.

Thanks Frederic Anand

104979058 commented 2 years ago

$pdf->setTextShadow(array('enabled'=>true, 'depth_w'=>0.2, 'depth_h'=>0.2, 'color'=>array(196,196,196), 'opacity'=>1, 'blend_mode'=>'Normal'));

kpomservices commented 2 years ago

Thanks for your response

I need a blur effect for shadow to be added like this, pls provide suggestion how to add text shadow blur effect in TCPDF.

image

104979058 commented 2 years ago

color: transparent; text-shadow: #111 0 0 5px;

try htmlcss

kpomservices commented 2 years ago

Thanks for your response.

But i need to do it via setTextShadow

Because i am adding objects via svg $pdf->ImageSVG('@' . $svgstring);. this is need for generating vector pdf output.