PdfBox-Android
PdfBox-Android copied to clipboard
java.lang.NoClassDefFoundError: com/tom_roush/pdfbox/pdmodel/font/PDType1Font
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