Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
PDFKit.SetPrintOption
Sets custom print options.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
PDFKit | 9.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
MBS( "PDFKit.SetPrintOption"; Key; Value { ; Type } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
Key | The key to use. | "com_apple_print_PrintSettings_PMCopies" | |
Value | The value to use. Depending on data type, the plugin will pass a number or a text. |
3 | |
Type | Available in MBS FileMaker Plugin 9.2 or newer. The type of data to add. Default is empty to use type of value passed. So text or number type would be picked automatically. Valid values for type are boolean, text, number, integer and text. Integer is for integer numbers while number is for floating numbers. |
Optional |
Result
Returns OK or error.
Description
Sets custom print options.For regular options, please use PDFKit.SetPrintSetting.
Examples
Sets a custom option:
MBS( "PDFKit.SetPrintOption"; "xxx"; 123 )
Sets a custom boolean option:
MBS( "PDFKit.SetPrintOption"; "xxx"; 1; "boolean" )
Asks for 4 pages per page:
Set Variable [ $r ; Value: MBS( "PDFKit.SetPrintOption"; "NSPagesAcross"; 2; "Integer") ]
Set Variable [ $r ; Value: MBS( "PDFKit.SetPrintOption"; "NSPagesDown"; 2; "Integer") ]
Set output bin:
Set Variable [ $r ; Value: MBS("PDFKit.SetPrintOption"; "OutputBin"; "MailBoxBin1") ]
See also
Release notes
- Version 11.5
- Fixed a problem with PDFKit.SetPrintOption not setting value correctly.
- Version 9.2
- Added new optional type parameter to PrintDialog.SetOption and PDFKit.SetPrintOption to set data type.
- Added PDFKit.GetPrintOption and PDFKit.SetPrintOption functions to set custom options.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 11.5pr1
- Was gibt es neues bei MBS Version 9.2
- MBS FileMaker Plugin, version 9.2pr1
This function checks for a license.
Created 12nd March 2019, last changed 10th April 2022