Hi All,
I am trying to set the size of the text while generating pdf document through Viewer API with the help of WaterMark API of GroupDocs.Viewer.Options namespace. I am trying to set the watermark size with the help of following code
string footerwaterMark = "This document is licensed to Admin User at MET and its usage is limited to school year";
Watermark objWaterMark = new Watermark(footerwaterMark);
objWaterMark.FontName = "Calibri";
objWaterMark.Size = new Size(30);
Now when I am trying to open this pdf file through Adobe Reader it is giving me following error :-
image.png (10.9 KB)
If I truncate the content of this text till “This document is licensed to Admin User at” and size as half of the page size with help of code
objWaterMark.Size = Size.HalfSize it is working and giving me the output as
image.png (6.8 KB)
But any change in combination of the size and text is always giving me the error for which I am unable to figure out the reason. Currently for development I am using evaluation version of Group Docs, if this issue might be related to licensing as well, please help