pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M. Niedermair" <m_...@gmx.de>
Subject PDFont - thread save?
Date Thu, 08 Oct 2015 09:59:14 GMT
Hello there,

I load the font "Linux Libertine" in a factory as a singleton (I create 
several hundred PDFs with this font.).

libertine_R = PDTrueTypeFont.loadTTF(document,

In single-threaded, this also works without problems.
But if I start multiple threads that use the Font singelton, there is an 
error. I run four threads per core (4x8 = 32).

As a stopgap, I load the font in each thread individually.
Is there a better solution?


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

View raw message