find_text
Search and locate text within PDF documents using regular expressions and retrieve precise coordinates. Ideal for extracting specific information from PDFs efficiently.
Instructions
Find text in PDF and get coordinates. Supports regular expressions.
Ref: https://developer.pdf.co/api-reference/pdf-find/basic.md
Input Schema
Name | Required | Description | Default |
---|---|---|---|
api_key | No | PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional) | |
httppassword | No | HTTP auth password if required to access source url. (Optional) | |
httpusername | No | HTTP auth user name if required to access source url. (Optional) | |
pages | No | Comma-separated list of page indices (or ranges) to process. Leave empty for all pages. Example: '0,2-5,7-'. The first-page index is 0. (Optional) | |
password | No | Password of the PDF file. (Optional) | |
regexSearch | No | Set to True to enable regular expressions in the search string. (Optional) | |
searchString | Yes | Text to search. Can support regular expressions if regexSearch is set to True. | |
url | Yes | URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files. | |
wordMatchingMode | No | Values can be either SmartMatch, ExactMatch, or None. (Optional) |
Input Schema (JSON Schema)
{
"properties": {
"api_key": {
"default": "",
"description": "PDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)",
"title": "Api Key",
"type": "string"
},
"httppassword": {
"default": "",
"description": "HTTP auth password if required to access source url. (Optional)",
"title": "Httppassword",
"type": "string"
},
"httpusername": {
"default": "",
"description": "HTTP auth user name if required to access source url. (Optional)",
"title": "Httpusername",
"type": "string"
},
"pages": {
"default": "",
"description": "Comma-separated list of page indices (or ranges) to process. Leave empty for all pages. Example: '0,2-5,7-'. The first-page index is 0. (Optional)",
"title": "Pages",
"type": "string"
},
"password": {
"default": "",
"description": "Password of the PDF file. (Optional)",
"title": "Password",
"type": "string"
},
"regexSearch": {
"default": false,
"description": "Set to True to enable regular expressions in the search string. (Optional)",
"title": "Regexsearch",
"type": "boolean"
},
"searchString": {
"description": "Text to search. Can support regular expressions if regexSearch is set to True.",
"title": "Searchstring",
"type": "string"
},
"url": {
"description": "URL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files.",
"title": "Url",
"type": "string"
},
"wordMatchingMode": {
"default": null,
"description": "Values can be either SmartMatch, ExactMatch, or None. (Optional)",
"title": "Wordmatchingmode",
"type": "string"
}
},
"required": [
"url",
"searchString"
],
"type": "object"
}