Log.Warning("Failed to get the section contents") Create a regular expression that will get the text between the section headers Get the entire text content of the PDF file If (aqFile.Exists(aPath) & (aqFileSystem.GetFileExtension(aPath) = 'pdf')) Log.Message("View the contents of the section \"" + section1Name + "\" in the Details panel", contents) įunction GetSectionContents(aPath, aSection1, aSection2) (to get the contents of the last section, leave this value empty)Ĭontents = GetSectionContents(path, section1Name, section2Name) If you agree to the license terms, click Enable OCR. In the confirmation message, click the link to read a third-party license agreement. If you experience issues with PDF support in your tests, select File > Install Extensions from the TestComplete main menu and make sure the PDF to Text plugin is enabled (you can find it in the Intelligent Quality group). PDF to Text support must be enabled in TestComplete.īy default, it is enabled automatically if you enable the Intelligent Quality add-on during TestComplete installation. Select File > Install Extensions from the TestComplete main menu and enable the Intelligent Quality > Intelligent Quality Core plugin in the resulting dialog. If you did not enable the add-on during the installation, you can do this at any moment later via the File > Install Extensions dialog. You can enable the add-on during TestComplete installation. The Intelligent Quality add-on must be enabled in TestComplete. You need an active license for the TestComplete Intelligent Quality add-on. Your firewall must allow traffic through port 443. This web service is used to recognize the text content of PDF files. If you have firewalls or proxies running in your network, they should allow your computer to access the web service. Your computer must have access to the .com web service. Your TestComplete version must be 14.20 or later.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |