Skip to content

Add get_pdf_text() and use that in assert_pdf_text()

Compare
Choose a tag to compare
@mdmintz mdmintz released this 25 Nov 03:49
· 6384 commits to master since this release
b562ddc

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.)