Forum Discussion
Unfortunately, PDF's are a real bear to work with. They are not open, usually, to getting information straight from them.
Fortunately, a couple of versions back, the SmartBear folks wrote up a nice document on how to utilize a PDFBox library to parse out text from a PDF. You can check it out at https://support.smartbear.com/articles/testcomplete/testing-pdf-files-with-testcomplete/
One note: This will simply extract text. It will not bring the information in as a "table" structure or anything like that, at least, not that I can tell from first glance. So, you will need to extract the text and then use an aqString find method to find the text in it's particular context.
Isnt this utilize java scripting ?
Am currently working in a python project, so am not sure abut using this alone in java . Will it work ?
I did run across it on my initial search but I skipped it as it said it is handled with java classes !
Kindly bare if its a lame question but still I am not clear weather I can use this in my project !
- tristaanogre8 years agoEsteemed Contributor
As far as I know, you can use the JavaBridge even in a Python project. The idea of the JavaBridge is similar to the .NET CLR stuff in TestComplete... you can bring in and incorporate these kinds of classes and objects in your project and then utilize them, regardless of your scripting language of choice. Obviously, you would need to adapt the code in the article to by for Python, something that I am not qualified to do because the only thing I really know about Python is that it exists and is supported in TestComplete. Sorry.
Related Content
- 4 years ago
- 8 years ago
Recent Discussions
- 6 days ago
- 6 days ago
- 10 days ago