get_submission_pdf
Download a Nettskjema submission by ID as a PDF, saving it to a chosen path or temporary file for offline review or archiving.
Instructions
Download a submission as a PDF file.
The PDF is written to disk, not returned inline: a multi-megabyte PDF as base64 is not useful to a model. The returned path is absolute and tilde-expanded. An existing file at the output path is silently overwritten, and its mode is preserved. A new file (whether from output_path or a temp file) is created with mode 0600 (readable only by the current user).
When output_path is omitted, a temporary file is created in the system temp directory with a .pdf suffix. The temporary file persists after this call returns and is left on disk for the caller to use or delete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | No | Destination file path. When omitted, a temporary file is created in the system temp directory. The path may contain ~ for the home directory and may be relative (it will be resolved to an absolute path). | |
| submission_id | Yes | The submission's numeric ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |