Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5    Statistic  

PDFKit.SetPrintOption

Sets custom print options.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
PDFKit 9.2 Yes No No No No
MBS( "PDFKit.SetPrintOption"; Key; Value { ; Type } )   More

Parameters

Parameter Description Example value
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 Optional
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 text, number, integer and text.
Integer is for integer numbers while number is for floating numbers.

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") ]

See also

Blog Entries

Release notes

Created 12nd March 2019, last changed 14th November 2019


PDFKit.SetPDFPageRotation   -   PDFKit.SetPrintSetting

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins