I’ve had this happen to me several times now; I’m testing a website, let’s say an airline website, I purchased my ticket and the last step of the flow is to download the ticket in a PDF format to print it. Well end of the road I would think, and just test the PDFs by hand. After all, Selenium only tests HTML pages, I can’t really test the content of the PDF.
closed as not a real question by Anna Lear♦ Feb 12 '12 at 3:29
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
Selenium is a library that allows you to manipulate web pages. Selenium does not provide any access to the PDF documents at all.
The article you provided is about parsing PDF in ruby with PDF::Reader.
Please consider the following discussion about the PDF parsing in java: