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

@gopalsharma

We have introduced the following properties in GroupDocs.Conversion Cloud 21.4. Hopefully, it will help you to accomplish the task.

Property Type Description
WatermarkOptions.Bold boolean Watermark font bold style if text watermark is applied
WatermarkOptions.Italic boolean Watermark font italic style if text watermark is applied

@tilal.ahmad Thank you so much, for the update.
Really appreciate it.

1 Like