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