Ask a Question

Can I do a checkpoint on a text string in a pdf?

SOLVED
mcp111
Contributor

Can I do a checkpoint on a text string in a pdf?

My application prints a pdf and I would like to verify certain strings in that pdf. Is that possible with some sort of checkpoint? The application automatically opens the pdf in a browser and I can navigate to it.

Regards

Partha Mandayam
Software Consultant
3 REPLIES 3
shankar_r
Community Hero

If you are testing only a few String then you can use the MSAA control.

 

If you want to test more stuff then I would suggest using this article.

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


Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”

Extension Available

jab4743
Contributor

Sure ... if you don't want to use the Apache PDFBox - generally you can use a file checkpoint after saving the pdf somewhere - if the pdf displays online you could do an image compare - if the pdf displays online you could use OCR.  Image compare checkpoint isn't perfect - file compare checkpoint isn't perfect - ocr logic isn't perfect.  All have issues you might have to work thru - for example if you each time you produce the pdf - does the pdf contain a current date that you have to account for.....  you need to determine which option works best in your environment.

Thanks

 


@shankar_r wrote:

If you are testing only a few String then you can use the MSAA control.

 

If you want to test more stuff then I would suggest using this article.

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


 

Regards

Partha Mandayam
Software Consultant
cancel
Showing results for 
Search instead for 
Did you mean: