1

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

Th3Gh0st
  • 43
  • 7

1 Answers1

1

Solution:

I was missing to specify font family, working code:

PDFont pdfFont=  new PDType1Font(font_name_3v.HELVETICA_BOLD);
Th3Gh0st
  • 43
  • 7