Overall that error message seems to be indicating that load is not a valid method name (or the input is not in the expected format) for objects of type org.apache.pdfbox.pdmodel.PDDocument. Maybe it expects a string in double quotes?
Also, I am not sure what your use case is, but if you are extracting text from the pdf document, then this File Exchange post may be useful:
https://www.mathworks.com/matlabcentral/fileexchange/19798-extract-text-from-a-pdf-document
1 Comment
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/342059-java-error-to-read-pdf-file#comment_456883
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/342059-java-error-to-read-pdf-file#comment_456883
Sign in to comment.