The issue is reproducible with PDF form fields and setting Polish characters to the text fields: e.g. "ęóąśłżźćń"
Edit mode in RadPdfViewer:
Exit edit mode:
Here is a sample code snippet for reproducing the case without UI:
PdfFormatProvider provider = new PdfFormatProvider();
RadFixedDocument document = provider.Import(File.ReadAllBytes("file.pdf"), TimeSpan.FromSeconds(10));
foreach (RadFixedPage page in document.Pages)
{
foreach (Annotation annotation in page.Annotations)
{
if (annotation.Type == AnnotationType.Widget)
{
Widget widget = (Widget)annotation;
var field = widget.Field as TextBoxField;
if (field != null)
{
field.Value = "ęóąśłżźćń.";
}
}
}
}
string outputFilePath = "result.pdf";
File.Delete(outputFilePath);
File.WriteAllBytes(outputFilePath, provider.Export(document, TimeSpan.FromSeconds(10)));
Process.Start(new ProcessStartInfo() { FileName = outputFilePath, UseShellExecute = true });