Add get_pdf_text()
and use that in assert_pdf_text()
-
get_pdf_text(pdf, page=None)
Gets the text from a PDF (The PDF can be either a URL or a path on the local file system. If a Page number is provided, uses that page, otherwise gets everything.) -
assert_pdf_text(pdf, text, page=None)
Asserts that certain text appears in a PDF (The PDF can be either a URL or a path on the local file system. If a Page number is provided, only checks that page, otherwise all pages get scanned for the expected text.)