JoeClark replied

415 weeks ago

Hi

I have to automate a web application where a pdf file is created and viewable / downloadable.

How can I verify that the pdf is somehow correct
(if the pdf file is corrupt it depends from the browser and the plugin how this is displayed)

Can I get the number pages in the pdf by an universal way (for all browsers and plugins)

Is it possible to read some content of the pdf file (e. g. if a given string exists)

Currently (Ranorex 6.2.0) Ranorex sees only 1 large area, but no content.
With Firefox and the current plugin I am able to verify at least the number of pages from toolbar.
But this test is brittle and would run only on my machine.

Another workaround would be to download the file and convert it to text format by another tool or simply by ctrl-c and verify text in the clipboard.

If the pdf is not protected and selecting of text is possible - what are Ranorex built in possibilities?


Please help….


I didn't find the right solution from the Internet.
References
https://www.ranorex.com/forum/how-to-verify-pdf-content-t10346.html
example case study
Please log in to post a reply.