update_hyperlink_annotation
Replace outdated hyperlinks in PDFs by searching for existing text or URL and applying new display text and destination.
Instructions
Update hyperlink annotations in a PDF using PDF4me UpdateHyperlinkAnnotation API (POST /api/v2/UpdateHyperlinkAnnotation). Provide a local PDF path and all hyperlink update fields (SearchOn, SearchValue, IsExpression, TextCurrentValue, TextNewValue, URLCurrentValue, URLNewValue). Supports async via isAsync and 202 Location polling. Saves the updated PDF to disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Local path to the input PDF. | |
| search_on | Yes | Search criteria type (e.g. Text). | |
| output_dir | No | ||
| search_value | Yes | Value to search for. | |
| is_expression | Yes | Whether the search is treated as an expression. | |
| url_new_value | Yes | New hyperlink URL destination. | |
| text_new_value | Yes | New display text. | |
| output_file_name | No | ||
| url_current_value | Yes | Existing hyperlink URL to replace. | |
| text_current_value | Yes | Existing display text to replace. |