Specify font size, text color and rotation of text stamp

It is required to recreate watermark in PDF from watermark in MS Word document. The original topic is here:
https://forum.aspose.com/t/how-to-read-the-existing-watermark-text-from-aspose-words-using-net/277110

The goal is the watermark style should be same in word and pdf. Currently we can be able to get the text, but we are facing issues with font size, color, and rotation angle. How to fix this? If there is any constant value we need to add or multiply to the shape property to get proper stamp property, we are ready to do that as well.


This Topic is created by alexey.noskov using Email to Topic tool.

@sarathisathish90

You can please check the documentation article on how to add text stamp in a PDF document. The linked example contains code that shows how to set font size, font, rotation and properties for the text stamp. As per your discussion in other thread, you can use Aspose.Pdf.Drawing in Linux + .NET Core to get better and expected results.

Hi @asad.ali . Thanks for your reply. Our question is simple in this How to read the existing watermark text from Aspose.Words using .net - #9 by sarathisathish90 we have attached our input word document and source code, where we are trying to assign shape properties to text stamps as best of our knowledge, but the generated watermark is not looking same as word one.

Question Is there any way to create the same watermark from shape to text stamp without using image stamp or drawing library? If yes, please correct our source code and reply to us. Thanks.

Only if this is not possible will we be interested in proceeding with another approach.

@sarathisathish90

No there is no way to achieve what exactly you are expecting.

However, if you are able to extract text from watermark from Word document using Aspose.Words, you can use same styles in Aspose.PDF to add the text stamp inside PDF document as shared in our previous response. Please feel free to let us know in case you have further inquiry or more concerns.

A post was split to a new topic: How to remove existing watermark from Word and save as PDF