Testing PDF documents using Firefox and testIT WebTester
Let´s imagine for a second your boss has a new assignment for you. He wants you to automatically test the structure of generated PDF documents.
Sounds like a pain in the lower body region? Not entirely.
This blog post will show you a basic concept and an example of how to test structure and content of PDFs using Firefox and testIT WebTester.
For quite a while the Firefox supports HTML 5. So if you open a PDF document in the Firefox Browser, it transforms the document into an HTML 5 Canvas element. It may look like this:
testIT PDF Tester – example of PDF document in Firefox
As you can see, the whole document has been translated into an HTML DOM structure.
Everything starts with the “viewerContainer” element, followed by the viewer and after that, it continues with the pages.