Skip to main content
4 votes
Accepted

What to test when "testing" a PDF download?

As I understand this, you have an application that takes some set of data per user, renders it to PDF, and allows the user to download the generated PDF file. If there are any errors, the PDF is not ...
Kate Paulk's user avatar
  • 31.5k
3 votes

Verifing pdf using Selenium + Java

After a lot of thinking and research, here is the solution I finally came up with: Download the pdf Verify the pdf using Java Verifying the pdf using Java was the easy part (since it was, by default,...
BelovedFool's user avatar
2 votes

What to test when "testing" a PDF download?

We tend to create a test to check the download file is not empty for exports that are the same as the screen. Some psuedo code: driver.downloadFile(); file = getFile(pathToFile); assert(file.size &...
Niels van Reijmersdal's user avatar
2 votes

Is there any software available in the market that can be used to automate PDF testing?

What are you testing for? Tools: Typo's are easy, there are spell-checkers for that. Regression is fairly easy as well, a good compare tool will reveal all changes between versions. PDF validation ...
Bookeater's user avatar
  • 894
1 vote

Verifying that a pdf is correctly displayed using new relic synthetics

(OP here) I finally found out why this way of verifying pdf wasn't working. I made the false assumption that every platform (Firefox, Chrome, Edge, Safari, etc...) was displaying pdf the same way. ...
BelovedFool's user avatar
1 vote

Large valid PDF files for testing

Most platforms have a printer driver that can create pdf files , I would use this as a source rather than random pdfs from the internet. PDFs can contain lots of nasty things that shouldn't be in a ...
Amias's user avatar
  • 1,202
1 vote

How to compare image and PDF using Selenium

Selenium can only driver the browser. So after you have downloaded a file you need some other way to check its content. The technique is called template matching, finding an image within another ...
Niels van Reijmersdal's user avatar
1 vote

Selenium: how do I download a PDF from a pop-up?

We use pdfminer, with urllib2. It does not fit your other criteria (is a third party library) and does process the URL opened by the popup, but is easy and straightforward to use. YMMV. Next time ...
Peter M. - stands for Monica's user avatar
1 vote

How to generate screenshot from the browser and compare it with pdf

You can open PDF file in browser , and then use PhantomCSS. It will compare both screenshots of PDF file and Web page taken from the browser. Try to create PDF from web pages and compare documents ...
prinz's user avatar
  • 552

Only top scored, non community-wiki answers of a minimum length are eligible