ftos.files.pdf.findMatchingRows
IMPORTANT!
Starting with v24.3.0, this is renamed from findMatchingRows to ftos.files.pdf.findMatchingRows.
Starting with v24.3.0, this is renamed from findMatchingRows to ftos.files.pdf.findMatchingRows.
Finds all occurrences of a keyword in a PDF file and returns the containing rows.
This is a business logic method for business service components.
Syntax
function ftos.files.pdf.findMatchingRows(searchKeyword: string, fileName: string): string[]
| Parameter | Description |
|---|---|
searchKeyword
|
Keyword to be found in the PDF file. |
filelName
|
Unique internal ID of the searched PDF file (real name). |
Return Value
Returns an array of strings containing the rows where the keyword was found.
Examples
In this example:
- We search for the fees keyword in the account_statement_91cac968-a730-4ba6-8d8f-093438614a78.pdf document.
- We save the entries related to fees in a variable called feesList.
var feesList = ftos.files.pdf.findMatchingRows('fees', 'account_statement_91cac968-a730-4ba6-8d8f-093438614a78.pdf');