PDFKit.GetPrintSetting
----------------------

Queries print settings for printing PDF.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [PDFKit](component_PDFKit.md) | [4.0](newinversion40.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

MBS( "PDFKit.GetPrintSetting"; Selector ) 

**MBS**( **"PDFKit.GetPrintSetting";** /\* Queries print settings for printing PDF. \*/  
**$Selector**) /\* Which value to query.e.g. "FaxNumber" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Selector | Which value to query. | "FaxNumber" |

### Result

Returns value or error.

### Description

Queries print settings for printing PDF.  
See also [PDFKit.Print](PDFKitPrint.md) function.  
See also [PDFKit.SetPrintSetting](PDFKitSetPrintSetting.md) where options are described.  
  
You can query default printer name using "DefaultPrinter" as selector.  
New in 8.1 you can use selector LastSettings to query last settings as XML and discover what options are set by using the dialog, e.g. the tray names.  
  
Print settings for iOS to query:  
| JobTitle | The job title. |
|---|---|
| PrinterID | The identifier for the printer to use (when using dialog). |
| PrinterURL | The URL to identify the printer (when not using dialog). |
| PrinterDisplayName | Queries printer display name. |
| ShowsPrintPanel | Whether to show the printer dialog. Default true. |
| ShowsNumberOfCopies | Whether to show number of copies option in dialog. |
| ShowsPaperSelectionForLoadedPapers | Whether to show paper selection option in dialog. |
| ShowsPaperOrientation | Whether to show orientation option in dialog. |
| OutputType | The output type to use: General, Photo, Grayscale or PhotoGrayscale. |
| DuplexMode | The duplex mode to use: None, LongEdge or ShortEdge |
| printingAvailable | Whether printing is available at all. |
| LastSettings | Queries last settings as JSON. |

### Examples

Query printer:

 MBS ( "PDFKit.GetPrintSetting"; "printer" )  
Query default printer:

 MBS ( "PDFKit.GetPrintSetting"; "DefaultPrinter" )  
Query last settings as xml:

 MBS ( "PDFKit.GetPrintSetting"; "LastSettings" )  
### See also

- [PDFKit.GetPrintLastSettings](PDFKitGetPrintLastSettings.md)
- [PDFKit.GetPrintOption](PDFKitGetPrintOption.md)
- [PDFKit.Print](PDFKitPrint.md)
- [PDFKit.ResetPrintSettings](PDFKitResetPrintSettings.md)
- [PDFKit.RestorePrintSettings](PDFKitRestorePrintSettings.md)
- [PDFKit.SavePrintSettings](PDFKitSavePrintSettings.md)
- [PDFKit.SelectPrinter](PDFKitSelectPrinter.md)
- [PDFKit.SetPrintOption](PDFKitSetPrintOption.md)
- [PDFKit.SetPrintSetting](PDFKitSetPrintSetting.md)

### Release notes

- **Version 11.1**
    - Added PageSize setting for [PDFKit.SetPrintSetting](https://www.mbsplugins.eu/PDFKitSetPrintSetting.shtml) and [PDFKit.GetPrintSetting](https://www.mbsplugins.eu/PDFKitGetPrintSetting.shtml) functions.
- **Version 8.1**
    - Added LastSettings option to [PDFKit.GetPrintSetting](http://www.mbsplugins.eu/PDFKitGetPrintSetting.shtml) function.

### Example Databases

- [Mac and iOS/PDFKit/PDFKit Print](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/PDFKit/PDFKit%20Print.shtml#5ScriptAnchor_)
- [Mac and iOS/PDFKit/Printing iOS](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/PDFKit/Printing%20iOS.shtml#12ScriptAnchor_)

### Blog Entries

- [Controlled printing for iOS in FileMaker](https://www.mbsplugins.de/archive/2024-04-15/Controlled_printing_for_iOS_in/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.1pr2](https://www.mbsplugins.de/archive/2021-02-05/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 8.1pr1](https://www.mbsplugins.de/archive/2018-02-02/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 4.0pr5](https://www.mbsplugins.de/archive/2014-01-27/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 17th March 2024

  
[PDFKit.GetPrintOption](PDFKitGetPrintOption.md) - [PDFKit.List](PDFKitList.md)

[HTML Version](PDFKitGetPrintSetting.shtml)