spipu / html2pdf

OFFICIAL PROJECT | HTML to PDF converter written in PHP
http://html2pdf.fr/en/default
Open Software License 3.0
1.68k stars 750 forks source link

Diagonal watermark text #476

Open silakanveli opened 5 years ago

silakanveli commented 5 years ago

Trying to make diagonal background text like watermark to every page. I know that i can make background image via but i would just really want to have plain text and in angle. Tried to transform: rotate(-90deg); with no Joy.

Help me out buddies. Cheers

insurgentnl commented 5 years ago

Any updates on this? Tried with CSS, but transform:rotate(310deg); is not working also not working with prefixes -ms and -webkit

Using rotate: 90; works, but that is only for vertical/horizontal and not diagonal

LittleBigFox commented 5 years ago

Hi!

Personnaly, i use GD for make a diagonal watermark...

$im = \imagerotate($im, 45, $background_color);

Regards, LBF

silakanveli commented 5 years ago

Hi!

Personnaly, i use GD for make a diagonal watermark...

$im = \imagerotate($im, 45, $background_color);

Regards, LBF

Sure, this is the only way to do it currently. It is just nasty when you have to generate text to image and then rotate

Samerkassem commented 4 years ago

Hi!

Personnaly, i use GD for make a diagonal watermark...

$im = \imagerotate($im, 45, $background_color);

Regards, LBF

What is "GD" ?

noveweb commented 2 months ago

2024, any solution?