Forum Discussion
- mattbStaff
Hi,
Without OCR this will be more difficult. I have example scripts using OCR comparing PDFS and masking data as well.
This is just an Idea:
We would probably need to convert the PDF into something else, like an XML. Once in an XML or another file we could call a file comparison. I think its easiest done in XML since parsing that file is relatively easy.
https://support.smartbear.com/testcomplete/docs/testing-with/working-with-external-data-sources/xml.html- kathir_43Contributor
I am able to extract the contents of word & PDF file to text files respectively. Word document is kind of template in which outline will be defined (how pdf should be generated ).Below sample is given.
Word doc:
<firstname>,<LastName>
<ID>,<organisation>
<salary>,<place>
Dear <firstname>,
you are working in the department of <organisation> and we are really honored to have you here. Expecting many more successful years of service from you.
Thanks,
Actual PDF:
John,Kennedy
234,google
USD1245,CA
Dear John,
you are working in the department of google and we are really honored to have you here. Expecting many more successful years of service from you.
Thanks,
can someone help with the comparison logic to validate both the static and dynamic content are getting generated as expected??
- mattbStaff
Hi,
What language are you using for scripting?
Related Content
- 2 years ago
- 2 years ago
- 2 years ago
- 4 years ago
Recent Discussions
- 22 hours ago
- 23 hours ago
- 5 days ago