ImageCapture.PDF
----------------

Creates a PDF with all scanned documents.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ImageCapture](component_ImageCapture.md) | [9.1](newinversion91.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "ImageCapture.PDF" { ; FileName } ) 

**MBS**( **"ImageCapture.PDF";** /\* Creates a PDF with all scanned documents. \*/  
**$FileName**) /\* Optional; The filename to use.e.g. "scan.pdf" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| FileName | The filename to use. | "scan.pdf" | Optional |

### Result

Returns PDF container value or error.

### Description

Creates a PDF with all scanned documents.  
We get the file path list and create a new PDF document, add all the images and then return the PDF.  
You can store it in a container field or export to a file (with [Container.WriteFile](ContainerWriteFile.md)).  
### Examples

Get a PDF into a field:

 Set Variable \[$pdf ; MBS ("ImageCapture.PDF") \]  
If \[ MBS ("IsError") \]  
 Set Field \[MyTable::MyPDF ; $pdf \]  
End If  
### See also

- [Container.WriteFile](ContainerWriteFile.md)
- [IsError](IsError.md)

### Release notes

- **Version 9.1**
    - Added [ImageCapture.PDF](http://www.mbsplugins.eu/ImageCapturePDF.shtml) function to return PDF document for scanned documents.

### Blog Entries

- [Neues MBS FileMaker Plugin 9.1](https://www.mbsplugins.de/archive/2019-03-12/Neues_MBS_FileMaker_Plugin_91/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 9.1 - More than 5700 Functions In One Plugin](https://www.mbsplugins.de/archive/2019-03-12/MBS_FileMaker_Plugin_91_-_More/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.1pr2](https://www.mbsplugins.de/archive/2019-02-11/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 11st February 2019 , last changed 25th February 2026

  
[ImageCapture.OpenDevice](ImageCaptureOpenDevice.md) - [ImageCapture.PreferredDevice](ImageCapturePreferredDevice.md)

[HTML Version](ImageCapturePDF.shtml)