this could be abstracted into a "compare_pdfs" method