Forum Discussion
Marsha_R
Champion Level 3
8 years agoThese links may be helpful:
https://support.smartbear.com/articles/testcomplete/testing-pdf-files-with-testcomplete/
- nimishbhuta7 years agoFrequent Contributor
Hello,
I am following the article for testing pdf with the testcomplete. I have configured JVM and the class path as per the instruction. But if I write the loadDocument function in TestComplete script unit it does not receognize the code as it is in JAVA.
Can you let me know how can I use this code?
function loadDocument(fileName) { var docObj; // Load the PDF file to the PDDocument object docObj = JavaClasses.org_apache_pdfbox_pdmodel.PDDocument.load_3(fileName); // Return the resulting PDDocument object return docObj; }
- nimishbhuta7 years agoFrequent Contributor
Hello,
The article has mentioned about Javascript and it is calling the classes. I am using VBSCript, so can you somebody send across the code for VBScript.
Regards
Nimish
- Marsha_R7 years ago
Champion Level 3
Did you try it in vbscript? What happened when you did?