I am trying to use PDFBox
in Java but get a NoSuchMethodError
when trying to create a PDPageContentStream
object.
The error I get at execution is:
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.pdfbox.pdmodel.PDPage.hasContents()Z
Thanks.
The problem has been solved. I had added two different versions of pdfbox to my project. When I removed the older version, the NoSuchMethodError disappeared.
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