Reading PDF /PDDocument.load_3 or load not found
I have tried to setup PDF reading accoring to instructions found here
I have java virtualmachine C:\Program Files (x86)\Java\jre1.8.0_131\bin\client\jvm.dll
and I have added pdf-box 1.8.13.jar and classes to project
In script I get error "Unknown name load_3". same for load and load_2. Code completion works only until
JavaClasses.org_apache_pdfbox_pdmodel.PDDocument after PDDocument nothing is shown.
But for example code completion in JavaClasses.org_apache_pdfbox_util.PDFTextStripper shows three instances of NewInstance?
What is wrong here? My code is quite simple
function LoadPdf( FileName ); var docObj; begin docObj := JavaClasses.org_apache_pdfbox_pdmodel.PDDocument.load_3( FileName ); result := docObj; end;
I have TestComplete 12.
Solved! Go to Solution.
Hah... stupid me
I had added pdfbox-1.8.13.jar , not pdfbox-app-1.8.13.jar which is correct one.
This java world is so confusing...