# Saving a PDF

### 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"
```
