PDF: attach a text file
attach_fileEmbed a Markdown or Mermaid text file as a paperclip annotation in an Okular PDF margin near text or at page top, or replace an existing attachment's file.
Instructions
Embed a text file (Markdown, Mermaid) as a paperclip annotation.
Embed a text file (e.g. notes.md, diagram.mmd) as a paperclip annotation in the margin, level with near_text or at the top of the page; or replace the file of an existing attachment replace_xref. Okular saves it via the icon's context menu. Same save-Okular-first caveat as mark_text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| note | No | ||
| page | No | ||
| path | No | ||
| color | No | ||
| content | Yes | ||
| near_text | No | ||
| replace_xref | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||