Hello,
I am adding a watermark (draft) on a document, but I want to prevent the text selection of those text blocks (it is weird otherwise).
I didn't find the option to do so, can you help?
i'm basically doing this inside a loop :
Code: C#
//Create a new text layer
var textLayer = new PdfTextLayer
{
Font = new PdfFont("Arial", 12),
NonStrokingColor = new PdfColor(0.85f) // light gray
};
textLayer.GfxMatrix.Rotate(45);
//Create the text object
var textContent = new PdfTextContent("BROUILLON")
{
PositionMode = PdfTextPositionMode.Offset,
Offset = new PdfPoint(y * 150, x * 75)
};
//Add the text object into the text layer object
textLayer.Contents.Add(textContent);
//Add the text layer into the page
contents.Add(textLayer);
Thanks.