cancel
Showing results for 
Search instead for 
Did you mean: 

PDF validation without Intelligent Quality add-on & PDFBox in Testcomplete

SOLVED
Highlighted
New Contributor

PDF validation without Intelligent Quality add-on & PDFBox in Testcomplete

Hi,

I have a scenario to validate (using Python) the PDF content (like name, transactions details etc) and the layout on several pages. The pages contains client position, transaction etc along with some graphs, pi-chart etc. Number of pages can vary and these details can be on any pages depending on current client holding & the type of transaction being performed.

I'm having perpetual (Desktop) TestComplete license without Intelligent Quality add-on. Kindly suggest if there is any way to perform above mentioned scenario.

 

Appreciate your help

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: PDF validation without Intelligent Quality add-on & PDFBox in Testcomplete

The solution before IQ was available was one that just used PDFBox.  Here's the previous reference.

https://support.smartbear.com/articles/testcomplete/testing-pdf-files-with-testcomplete

 

Another option is to find a suitable tool that converts pdf to text and then compare the text.

View solution in original post

4 REPLIES 4
Highlighted
Community Hero

Re: PDF validation without Intelligent Quality add-on & PDFBox in Testcomplete

The solution before IQ was available was one that just used PDFBox.  Here's the previous reference.

https://support.smartbear.com/articles/testcomplete/testing-pdf-files-with-testcomplete

 

Another option is to find a suitable tool that converts pdf to text and then compare the text.

View solution in original post

Highlighted
Contributor

Re: PDF validation without Intelligent Quality add-on & PDFBox in Testcomplete

Using python, you can install a package called pdfminer to extract the text from a PDF. You can then write your own validation on that text.

 

http://theautomatic.net/2020/01/21/how-to-read-pdf-files-with-python/

https://support.smartbear.com/testcomplete/docs/scripting/specifics/python.html#Packages


--------------------
QA Systems Architect
Integrated Control Technology
https://www.ict.co/
Highlighted
Community Manager

Re: PDF validation without Intelligent Quality add-on & PDFBox in Testcomplete

Thanks for the suggestions Marsha, tphillips!

 

@Atharva16 Did you get the answer to your question? Please mark the best reply as a solution here🙂 


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
New Contributor

Re: PDF validation without Intelligent Quality add-on & PDFBox in Testcomplete

Thanks Marsha. Appreciate your help.

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors