Twain.SetFileType
-----------------

Sets the file type to use for writing image files.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Twain](component_Twain.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "Twain.SetFileType"; FileType ) 

**MBS**( **"Twain.SetFileType";** /\* Sets the file type to use for writing image files. \*/  
**$FileType**) /\* The new file type. Can be BMP, JPEG, TIFF, PNG or GIF. Default is JPEG.e.g. "TIFF" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| FileType | The new file type. Can be BMP, JPEG, TIFF, PNG or GIF. Default is JPEG. | "TIFF" |

### Result

Returns OK on success.

### Description

Sets the file type to use for writing image files.  
Only used if you use [Twain.SetFolderPath](TwainSetFolderPath.md).  
  
For PDF, you can use DynaPDF / [PDFKit](component_PDFKit.md) functions to convert image to PDF.  
### See also

- [Twain.GetFileType](TwainGetFileType.md)
- [Twain.GetPixelType](TwainGetPixelType.md)
- [Twain.SetFolderPath](TwainSetFolderPath.md)
- [Twain.SetPixelType](TwainSetPixelType.md)

### Example Databases

- [Win Only/Scanning/Twain](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Scanning/Twain.shtml#10ScriptAnchor_)

### Blog Entries

- [MBS Filemaker Plugin, version 3.2pr5](https://www.mbsplugins.de/archive/2013-03-25/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 6th November 2015

  
[Twain.SetFeededEnabled](TwainSetFeededEnabled.md) - [Twain.SetFolderPath](TwainSetFolderPath.md)

[HTML Version](TwainSetFileType.shtml)