search_text
Find text in datasheet PDFs to locate the page, table, figure, or region for a register, parameter, or pin; then open that page image to verify the value in the original.
Instructions
Find a text in the text layer of one document, or of all documents of a part. Gives one line for each hit: the document reference, the page, the table or figure that holds the line (an element ID) or the region of the line, and the line. Give the element or the region to get_page_image: it costs less than a full page. The page headers and footers are not shown: a last line gives their number. Use it to find the page of a register, a parameter or a pin. Then read the value from the original (get_page_image): the text layer can be wrong.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | text (a substring); word (whole words only: "nF" does not find "configuration"); or regex (a Python regular expression, for example "Pin Functions?"). | text |
| part | No | A part number (MPN) or an alias. Case is ignored. | |
| text | Yes | The text to find. Case is ignored. In mode text it is a substring ("VDD" also finds "AVDD"), and the space between a number and its unit is optional ("100 nF" also finds "100nF"). | |
| document | No | The document: its reference from list_documents, project_status or add_document (the first 12 characters of its SHA-256). A longer SHA-256 prefix or the numeric document ID also works. | |
| repeated | No | True: also the lines that repeat on many pages (page headers and footers). | |
| max_lines | No | The maximum number of lines (1 to 200). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |