Java PDF code displaying MissingMethodException

Hi,

I need some help with this code. I have added PDFbox dependency in Katalon but i keep getting a error message when i execute this code.
I have placed this code in the keywords and have added the code to my script from selenium(java)
code:
WebDriver driver;
WebElement downloadpdf = driver.findElement(By.tagName(“embed”));
String fileAddress = downloadpdf.getAttribute(“src”);
driver.get(fileAddress);

Error message Katalon sends:common.PDFvalidation.pdfreader() FAILED.
Reason:
org.codehaus.groovy.runtime.metaclass.MissingMethodExceptionNoStack: No signature of method: common.PDFvalidation.pdfreader() is applicable for argument types: () values: []

Please Help…

The code you’ve presented doesn’t even use the pdfbox libs… Can you share the entire script?