Reading PDF document using katalon

Hi

I am trying to automate reading of text from PDF document which is saved and comparing it to a value.
I am always getting this error

I Verify PDF Contents FAILED.
Reason:
groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.apache.pdfbox.pdfparser.PDFParser(java.io.FileInputStream)

Can you please guide how to resolve this issue.

You can read the javadoc of PDFParser class at:
https://pdfbox.apache.org/docs/2.0.8/javadocs/org/apache/pdfbox/pdfparser/PDFParser.html

As this javadoc tells, there is no constructor with a signagure of org.apache.pdfbox.pdfparser.PDFParser(java.io.FileInputStream) defined. Therefore you got the error. Your code is wrong at this point.

I suppose you have read some tutorial book or online resource and learned how to use the PDFParser class. Please read it again carefully, paying attention to what class type is used for the argument to the PDFParser constructor in the tutorial.