Unplanned
Last Updated: 11 Mar 2026 08:24 by Piotr
Piotr
Created on: 11 Mar 2026 08:24
Category: Telerik Document Processing
Type: Bug Report
0
PdfProcessing: Incorrectly exported Polish characters from the form fields

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 });

0 comments