PdfBox-Android icon indicating copy to clipboard operation
PdfBox-Android copied to clipboard

java.lang.NoClassDefFoundError: com/tom_roush/pdfbox/pdmodel/font/PDType1Font

Open SerggioC opened this issue 3 years ago • 0 comments

Describe the bug Fail when setting font on android 4.4 and PdfBox 2.0.25

To reproduce contentStream = new PDPageContentStream(document, currentPage, PDPageContentStream.AppendMode.APPEND, false); contentStream.setFont(PDType1Font.COURIER, 10);

Expected behavior Should nbot crash.

Actual behavior System cannot find class com/tom_roush/pdfbox/pdmodel/font/PDType1Font Trying to load the Class manually it ends up in a stack overflow error.

Environment details:

  • PdfBox-Android version: 2.0.25.0
  • Android API version: 19, Andoird 4.4

SerggioC avatar Aug 11 '22 12:08 SerggioC