Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Fri Feb 03, 2017 4:49 pm

Hi to all,
when i compose a pdf (many Canvas.DrawString) i see a large memory usage by fonts.
i've tryed to close/dispose the document (also with "using" ) but the memory isn't released.

i'm using the last spire.pdf library version 3.8.158 (last available on nuget.org).

i've also the "Pro Edition Developer OEM Subscription" license installed.

berengan
 
Posts: 4
Joined: Fri Nov 18, 2016 12:44 pm

Sat Feb 04, 2017 1:55 am

Dear berengan,

Thanks for your inquiry.
At present you need to dispose the font after saving pdf document, as disposing the document cannot release the font cache.
In addition, we already noticed this issue, and we are doing an adjustment that only need to dispose document, the font cache will be released. Once it is done, we will notify you soon.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF