import ch.codeblock.qrinvoice.QrInvoiceInitializer;
...
QrInvoiceInitializer.create().preInitialize();
The QrInvoiceInitializer
class can be used to pre-initialize the QR Invoice library. Pre-Initialization can be useful when
first call performance matters. One expensive task the initializer covers is TTF font file discovery, which is needed for PDF creation.
import ch.codeblock.qrinvoice.QrInvoiceInitializer;
...
QrInvoiceInitializer.create().preInitialize();