> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/job/_getaspdf.md).

# \_getAsPdf

Generate a PDF of the Job and return the binary file.

### Parameters

#### id

The ID of the Job to return.

### Example

```
FM_api('Appointment_getAsPdf', ['id' => '222404']);
```

### Result

#### On Success

Returns a binary file in .pdf format

#### On Not Logged In

```
{'error':'not logged in?'}
```

#### On Appointment Not Existing

```
'no such meeting?'
```
