New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$html2pdf->pdf->setTextShadow(); #362

Open
nailug opened this Issue Aug 8, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@nailug

nailug commented Aug 8, 2018

Hello,

I would like to put one word in a pdf with a text shadow.
is there a way to do that with html2pdf ?
When I use
$html2pdf->pdf->setTextShadow(array('enabled' => true, 'depth_w' => 0.5, 'depth_h' => 0.5, 'color' => array(0, 0, 0), 'opacity' => 0.5, 'blend_mode' => 'Multiply'));
it enables text shadow in the whole pdf
When I use
$html2pdf->pdf->setTextShadow();
it disables it.
if I use WriteHTML between, it creates a new page.
Is there a way to insert a small text with shadow in the $html without applying the effect to the whole page ?
Thanks for your help

@spipu

This comment has been minimized.

Owner

spipu commented Sep 24, 2018

you can create your own shadow tag and your own tag extension, to create a specific tag that will manage the shadow :)

look at the doc to see how to do it

@spipu spipu added the enhancement label Sep 24, 2018

@nailug

This comment has been minimized.

nailug commented Sep 24, 2018

@spipu

This comment has been minimized.

Owner

spipu commented Oct 26, 2018

does it work ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment