PdfProcessing: Glyph widths for some documents are applied wrongly after import-export operation
Some documents result in glyphs with wrong widths after import-export. Widths are mixed making some of them to overlap and others to have bigger distance.
5 comments
ADMIN
Peshito
Posted on:14 Apr 2020 14:32
Hi,
This item will be available in R2 2020 Release.
It is also available with Telerik UI for WPF latest internal build - LIB 2020.1.420 (04/20/2020) if you need it earlier.
Regards,
Peshito
Progress Telerik
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.
ADMIN
Martin
Posted on:06 Mar 2020 14:13
Hi Abdul,
I am afraid I cannot provide you with a workaround fixing the wrong positioning of the text fragments after the font has changed. I am sorry for the inconvenience this issue might be causing you.
This task is with a very high priority in our backlog, however, I cannot engage with a specific date of its implementation, so make sure to upvote this item as this directly increases its priority in our backlog. If you would like to receive notifications about status changes on the task, you can subscribe to the item using the Follow button.
Regards,
Martin
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.
Abdul
Posted on:03 Mar 2020 12:25
Martin,
Thanks for the workaround, but the problem is characters and words spacing are not adjusting automatically according to new font.
ADMIN
Martin
Posted on:26 Feb 2020 14:49
Hello Abdul,
A possible workaround could be to change the Font of the document before exporting it. You can use one of the 14 fonts from the FontsRepository or to create a new one like in the following code snippet:
FontsRepository.TryCreateFont(new FontFamily("Calibri"), out FontBase calibri);
foreach (RadFixedPage page in document.Pages)
{
foreach (ContentElementBase content in page.Content)
{
if (content is TextFragment)
{
((TextFragment)content).Font = calibri;
}
}
}
Regards, Martin 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.