We published a simple test with two utility functions:

function Pdf_GetFullText(/**string*/pdfPath)
  • returns PDF contents as text that you may use for further processing.
  • pdfPath path to PDF file
function Pdf_EnsureText(/**string*/pdfPath, /**string*/textToFind, /**bool*/bAssert, /**string*/assertionMessage)
  • check presense of some string in PDF document.
  • pdfPath path to PDF file
  • textToFind substring to locate
  • bAssert - true/false depending on if you want this function to generate report assertion.
  • assertionMessage - optional assertion message to include into report.

You may find implementation here and copy to your project:



Or take working example from Rapise PowerPack: