> 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/form/_createfrompdf.md).

# \_createFromPdf

Creates a Form from a PDF.

### Parameters

#### name

The name of the PDF.

### Example

```
FM_api('Form_createFromPdf', ['name' => 'example.pdf']);
```

### Results

#### On Success

```
{'ok':1,'id':123}
```

#### On Failure

```
{'error':'Name not set'}
```

OR

```
{'error':'Uploaded file must be a PDF','filename':'wrongfile.pdf'}
```

OR

```
{'error':'No file uploaded'}
```
