html2pdf icon indicating copy to clipboard operation
html2pdf copied to clipboard

Diagonal watermark text

Open yamcomnet opened this issue 6 years ago • 5 comments

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

yamcomnet avatar May 22 '19 15:05 yamcomnet

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

insurgentnl avatar Jun 18 '19 09:06 insurgentnl

Hi!

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

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

Regards, LBF

LittleBigFox avatar Jun 19 '19 08:06 LittleBigFox

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

yamcomnet avatar Jun 19 '19 13:06 yamcomnet

Hi!

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

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

Regards, LBF

What is "GD" ?

Samerkassem avatar Sep 05 '20 14:09 Samerkassem