Reputation: 199
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.
Upvotes: 5
Views: 5466
Reputation: 199
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.
Upvotes: 9