Can I do a checkpoint on a text string in a pdf?
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Partha Mandayam
Software Consultant
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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”- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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/
Partha Mandayam
Software Consultant
