Good afternoon,
I recently try to upgrade pdfBox to 3.0.0-alpha3. I align the using of class PDType1font with new constructor requirements:
PDType1Font(Standard14Fonts.FontName baseFont)
My code now is:
FontName font_name_3v= Standard14Fonts.getMappedFontName("HELVETICA_BOLD");
PDFont pdfFont= new PDType1Font(font_name_3v);
But it hung infinite on line : PDFont pdfFont= new PDType1Font(font_name_3v);
I follow the documentation:
Thank you
Solution:
I was missing to specify font family, working code:
PDFont pdfFont= new PDType1Font(font_name_3v.HELVETICA_BOLD);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With