Free Support Forum - groupdocs.cloud

How to set text styling of watermark in PHP using GroupDocs.Conversion REST API

I’m getting my watermarked styled as italic by default, How can I modify make it normal instead of italic. And another issue is the color that we can specify, which colors? Is it possible to specify color code likes “#00000” etc?
$watermark->setText(“some text”);
$watermark->setRotationAngle(300);
$watermark->setTransparency(0.8);
$watermark->setTop(550);
$watermark->setLeft(100);
$watermark->setFontSize(75);
$watermark->setColor(“grey”);
$watermark->setWidth(100);
$watermark->setHeight(100);
$watermark->setBackground(true);

Any response would be really appreciated.
Thank you,
Gopal

@gopalsharma

We have noticed that GroupDocs.Conversion API is supporting only Italic format. We have logged a ticket CONVERSIONCLOUD-415 for further investigation and rectification. We will notify you as soon as it is resolved.

You can use Color name or RGB value of color.

1 Like