Completed
Last Updated: 15 Jul 2020 10:57 by ADMIN
Release R3 2019
ADMIN
Deyan
Created on: 28 Jun 2017 18:37
Category: PdfProcessing
Type: Bug Report
7
PdfProcessing: TextBoxFields content is visualized with wrong text after importing and exporting fields with custom encoding in VariableContentWidget's font
This is reproducible with specific PDF files which use custom Encoding for the fonts of the field widgets. 

WORKAROUND: Change the font of VariableContentWidgets before editing the field value. You should additionally call RecalculateContent() method of these widgets if the value of their corresponding fields is not edited. The following method may be used for changing the font of all existing widgets in the document:

private static void FixEncodingIssues(RadFixedDocument document)
{
    foreach(Annotation annotation in document.Annotations)
    {
        VariableContentWidget widget = annotation as VariableContentWidget;

        if(widget != null)
        {
            widget.TextProperties.Font = FontsRepository.Helvetica;
        }
    }
}
9 comments
ADMIN
Dimitar
Posted on: 15 Jul 2020 10:57

Hello Steven,

I know that this issue looks similar but the case is different here. We can continue to discuss this on the ticket you have opened. 

Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
Progress Telerik

Steven
Posted on: 14 Jul 2020 14:45

The fix for this issue is related to incorrectly positioned and overlapping text characters on the TextField content

That's not what the original poster said their issue was so I'm not sure why you would say that this is the fix for the issue.

I'll submit a separate ticket with my case if it is actually different but the workaround is exactly the same and the problem statement is the same too "TextBoxFields content is visualized with wrong text".

ADMIN
Georgi
Posted on: 14 Jul 2020 10:54

Hi Steven,

Thank you for contacting us.

The fix for this issue is related to incorrectly positioned and overlapping text characters on the TextField content due to incorrect character mappings. Is this the scenario you are currently encountering? I will greatly appreciate if you can share the document you are encountering this issue with. This way we will debug it and try to identify the cause. You can open a support thread from your account, where you can share the document you are reproducing the issue in a private manner. I must assure you that we treat all client files in a strictly confidential manner and for testing purposes only.

We have logged a similar issue in our feedback portal related to incorrect character mapping with TrueType fonts, which leads to invalid characters. However, without the document, I cannot tell for sure if the feedback item is related to the issue you are currently encountering.

Regards,
Georgi
Progress Telerik

Steven
Posted on: 07 Jul 2020 14:51
Has this been fixed? It seems to be tagged as R3 2019 and is marked as completed but I'm using 2019.3.1021 and still having this same issue. When setting the value on a text field that has a font with encoding certain characters do not display properly.
ADMIN
Georgi
Posted on: 17 Sep 2019 13:01

Hello Hector,

We will greatly appreciate any feedback you can provide us with. Each feedback is important for us, in order to improve the quality of our products.

Regards,
Georgi
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Hector
Posted on: 10 Sep 2019 14:05
AWESOME! Can't wait to test it out. Thank you!
ADMIN
Georgi
Posted on: 02 Aug 2019 11:27
Hi Hector,

I am afraid that I cannot provide you with any workaround other than applying font on each VariableContentWidget. We have estimated the item and we have increased its priority in our backlog. However, I cannot commit to specific timeframe when it will be delivered. My advice is to subscribe for the item to be notified for any status updates.

Regards,
Georgi
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Hector
Posted on: 26 Jul 2019 20:57
Is Telerik able to and/or planning on applying a fix for this in the code base? Rather than changing all font's to something standard, is there any code we can use to make the custom Encoding work?
Jan
Posted on: 30 Nov 2018 14:24
Thanks, this worked well for me.