Forum Discussion
hoadoan
14 years agoContributor
Thanks Helen so much. Your information is useful for me
Actually, my PDF isn't tagged. I will try tagging PDF as your suggestion later
I found another solution to read PDF which using dll file without changing pdf file to text file.
- Add IKVM.GNU.Classpath.dll, PDFBox-0.7.3.dll as references
- Copy FontBox-0.1.0-dev.dll, IKVM.Runtime.dll into TC’s bin directory
And write script as following
var doc=dotNET["org_pdfbox_pdmodel"]["PDDocument"]["load"]("C:\\BroadcastCalendarReport_pr.pdf");
var pdfStripper=dotNET["org_pdfbox_util"]["PDFTextStripper"]["zctor"]();
var str=pdfStripper["getText"](doc);
I will get the content of pdf file through str. I hope that it's useful for user to need PDF directly in Test complete 6
But I still have a problem in TC 8 trial. The message "Invalid procedure call or argument" is always shown at function pdfStripper["getText"](doc)
Could anybody help me on this?
Thanks,
Hoa.
Related Content
- 2 years ago
- 2 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 6 days ago