> For the complete documentation index, see [llms.txt](https://docs.kognitos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kognitos.com/legacy/legacy-experience/automation-areas/summary-1/converting-a-file-to-pdf/saving-a-pdf.md).

# Saving a PDF

Automation procedures for saving a PDF file after making changes.

### Saving to a Local Path

To save a PDF to a local path, use the following syntax:

```kog
get the pdf
save the pdf to a file with
    the target is "/local/path/to/save/the/pdf"
```

### Saving to an S3 URL

To save a PDF to an S3 URL, use the following syntax:

```kog
get the pdf
save the pdf to a file with
    the target is "s3://bucket-name/path/to/save/the/pdf"
```
