pdf-pages
Extracts the text of a PDF in the file store or at an http(s) url, one row per page.
pdf-pages url=VALUE [range=VALUE] [password=VALUE] [insecure=VALUE]
- url=VALUE
- Required. File store url or http(s) url of the PDF, e.g. sonar://{file_guid}, https://example.com/a.pdf. An http(s) PDF is downloaded to a temp file, which is deleted when the command finishes.
- range=VALUE
- Optional. Page selection, e.g. "1-5,7" (1-based). Every page when omitted.
- password=VALUE
- Optional. Password of an encrypted PDF. Tries the empty password when omitted.
- insecure=VALUE
- Optional. t to skip TLS certificate and hostname verification for an https url. Default is f.
Output Fields
| Field | Type | Name | Description |
|---|---|---|---|
| page | Integer | Page | e.g. 3 - 1-based page number |
| text | String | Text | e.g. Quarterly incident summary... - extracted page text, truncated at 100,000 chars |
| char_count | Integer | Char count | e.g. 2841 - length before truncation |
| is_truncated | Boolean | Truncated | e.g. false |