Hi, I use the PdfViewer control in my WPF project
I would like to set "default" custom text or overlaytext to appear in all redactions added using the tools in the PdfViewer control
I can see from the website guides how to set it if redacting using code, but can't see how I can set text, colour, appearance etc to apply to ALL redacted areas
Okay think I have worked part of it out - using below
PDFControl_Redact.RedactionSettings.OverlayText = "UNREGISTERED TRIAL VERSION"
PDFControl_Redact.RedactionSettings.FontSize = 8
But how can I repeat the text ?
Hi Deepak
I already have it working to add the text once in each redacted area by adding below to my Form1_Load event
' set redaction overlay text for trial version
If Licensing.LicenseInfo_LicenseType = Licensing.LicenseTypes.FeatureLimitedTrial Then
WPFUserControl_Redact.PDFControl_Redact.RedactionSettings.OverlayText = "UNREGISTERED TRIAL VERSION"
WPFUserControl_Redact.PDFControl_Redact.RedactionSettings.FontSize = 8
WPFUserControl_Redact.PDFControl_Redact.RedactionSettings.FontColor = System.Windows.Media.Colors.Red
WPFUserControl_Redact.PDFControl_Redact.RedactionSettings.UseOverlayText = True
End If
BUT I wanted to know how to repeat the text as per question on incident 340273
"But I would like to potentially have the text repeating and from all your examples of doing it in code there is mention of a Repeat or RepeatText parameter e.g.
string repeatedOverlayText = string.Empty;
for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 5; j++)
{
repeatedOverlayText += "UNREGISTERED TRIAL VERSION ";
}
repeatedOverlayText += '\n';
} |
Okay thanks, I can work with that :)