pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: Make reuse of PDFont instance?
Date Tue, 14 Nov 2017 07:21:49 GMT
Am 14.11.2017 um 08:15 schrieb hust.zcheng@gmail.com:
> HI,
>
> I found PDFontFactory create new instances of PDFonts for every dictionary, even for
the same font or same font dictionary.
>
> Can I make PDFontFactory reuse PDFont instances to speed up parsing performance and reduce
memory usage? What is the reason for PDFontFactory not to cache PDFont instances (for a single
PDF document)?

Because it is cached elsewehere, see PDResources.java.

Tilman

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message