Completed
Last Updated: 16 Nov 2022 08:10 by ADMIN
Release LIB 2020.1.330 (03/30/2020)
Ruchira
Created on: 12 Nov 2019 14:24
Category: PdfProcessing
Type: Feature Request
3
PdfProcessing: Provide API for clearing the registered fonts in the FontsRepository
When a document is imported the FontsRepository caches the created font instances for performance reasons. API should be provided for clearing the cached instances in order to reduce memory consumption.
6 comments
ADMIN
Dimitar
Posted on: 16 Nov 2022 08:10

Hi Scott,

The possible solution is to iterate all text fragments and check their font. For example: 

foreach (var page in pdfDocument.Pages)
{
    foreach (var item in page.Content)
    {
        var fragmet = item as TextFragment;
        if (fragmet != null)
        {
            Console.WriteLine(fragmet.Font.Name);
        }
    }
}

Let me know if I can assist you further.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Scott
Posted on: 14 Nov 2022 17:36

Dimitar,

I'm actually looking for something that will tell me what fonts are already registered and/or already embedded in an existing PDF.  Is there something available for that?

Thanks,
- Scott

ADMIN
Dimitar
Posted on: 14 Nov 2022 11:05

Hi Scott,

We do not have such an API. You will need to keep track of the fonts that you have registered. 

Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Scott
Posted on: 11 Nov 2022 21:12
I realize that this feature has been implemented...is there also a way to get a list of what fonts are registered?
ADMIN
Georgi
Posted on: 13 Nov 2019 15:06

Hello Ruchira,

Thank you for sharing your feedback with us.

I have increased the priority of the feature. We review the items in our backlog on a regular basis and prioritize them by customer demand. This way we ensure that the most wanted items will be implemented. However, I am afraid that we have planned the items for the upcoming release and I cannot commit to a specific time-frame when it will be delivered. Please, make sure to click the Follow button. This way you will be notified when the status of the item changes.

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.
Ruchira
Posted on: 12 Nov 2019 19:53
This is a high priority issue for our customers. Please inform us as soon as a fix is available.