Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MBS FileMaker Plugin Example Databases

PDFKit Print Documents

All examples are included with download of MBS FileMaker Plugin.

PDFKit Print Documents.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts7
Value Lists0
Custom Functions0
Custom Menus24
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
PDFKit Print Documents
13 fields defined, 11 records
PDFKit Print Documents

Fields

Table Name: PDFKit Print Documents - 13 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
DocumentNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
      PDFNormal, BinaryAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
          TypesNormal, TextAuto-Enter: Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
                DescriptionNormal, TextAuto-Enter:
                • Allow editing
                Validation:
                • Only during data entry
                Storage:
                • Repetitions: 1
                • Indexing: None
                • Automatically create indexes as needed
                • Index Language: German
                      FileNameNormal, TextAuto-Enter: Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German
                            PrinterNameNormal, TextAuto-Enter:
                            • Allow editing
                            Validation:
                            • Only during data entry
                            Storage:
                            • Global
                            • Repetitions: 1
                            • Index Language: German
                                PaperNameNormal, TextAuto-Enter:
                                • Allow editing
                                Validation:
                                • Only during data entry
                                Storage:
                                • Global
                                • Repetitions: 1
                                • Index Language: German
                                    DuplexNormal, TextAuto-Enter:
                                    • Allow editing
                                    Validation:
                                    • Only during data entry
                                    Storage:
                                    • Global
                                    • Repetitions: 1
                                    • Index Language: German
                                        PrinterTrayNormal, TextAuto-Enter:
                                        • Allow editing
                                        Validation:
                                        • Only during data entry
                                        Storage:
                                        • Global
                                        • Repetitions: 1
                                        • Index Language: German
                                              PrintSettingsNormal, TextAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Global
                                              • Repetitions: 1
                                              • Index Language: German
                                                  CopiesNormal, NumberAuto-Enter:
                                                  • Allow editing
                                                  Validation:
                                                  • Only during data entry
                                                  Storage:
                                                  • Global
                                                  • Repetitions: 1
                                                  • Index Language: German
                                                      FirstPageNormal, NumberAuto-Enter:
                                                      • Allow editing
                                                      Validation:
                                                      • Only during data entry
                                                      Storage:
                                                      • Global
                                                      • Repetitions: 1
                                                      • Index Language: German
                                                          LastPageNormal, NumberAuto-Enter:
                                                          • Allow editing
                                                          Validation:
                                                          • Only during data entry
                                                          Storage:
                                                          • Global
                                                          • Repetitions: 1
                                                          • Index Language: German

                                                              Layout Objects: PDFKit Print Documents

                                                              Regular Fields

                                                              Field Name: PDFKit Print Documents::Document
                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                              • Top: 114 pt
                                                              • Left: 138 pt
                                                              • Bottom: 405 pt
                                                              • Right: 391 pt
                                                              • Anchoring: Left, Top
                                                              Field Format:
                                                              • Edit Box
                                                              Field Behavior:
                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                              • Touch keyboard type: Default for Data Type
                                                              • Go to next field using: Tab key
                                                              No

                                                              Field Name: PDFKit Print Documents::PDF
                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                              • Top: 525 pt
                                                              • Left: 138 pt
                                                              • Bottom: 650 pt
                                                              • Right: 391 pt
                                                              • Anchoring: Left, Top
                                                              Field Format:
                                                              • Edit Box
                                                              Field Behavior:
                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                              • Touch keyboard type: Default for Data Type
                                                              • Go to next field using: Tab key
                                                              No

                                                              Field Name: PDFKit Print Documents::Types
                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                              • Top: 416 pt
                                                              • Left: 138 pt
                                                              • Bottom: 447 pt
                                                              • Right: 391 pt
                                                              • Anchoring: Left, Top
                                                              Field Format:
                                                              • Edit Box
                                                              Field Behavior:
                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                              • Touch keyboard type: Default for Data Type
                                                              • Go to next field using: Tab key
                                                              Yes

                                                              Field Name: PDFKit Print Documents::Description
                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                              • Top: 72 pt
                                                              • Left: 138 pt
                                                              • Bottom: 103 pt
                                                              • Right: 391 pt
                                                              • Anchoring: Left, Top
                                                              Field Format:
                                                              • Edit Box
                                                              Field Behavior:
                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                              • Touch keyboard type: Default for Data Type
                                                              • Go to next field using: Tab key
                                                              Yes

                                                              Field Name: PDFKit Print Documents::FileName
                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                              • Top: 451 pt
                                                              • Left: 138 pt
                                                              • Bottom: 482 pt
                                                              • Right: 391 pt
                                                              • Anchoring: Left, Top
                                                              Field Format:
                                                              • Edit Box
                                                              Field Behavior:
                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                              • Touch keyboard type: Default for Data Type
                                                              • Go to next field using: Tab key
                                                              Yes

                                                              Field Name: PDFKit Print Documents::PrinterName
                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                              • Top: 121 pt
                                                              • Left: 747 pt
                                                              • Bottom: 152 pt
                                                              • Right: 1000 pt
                                                              • Anchoring: Left, Top
                                                              Field Format:
                                                              • Edit Box
                                                              Field Behavior:
                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                              • Touch keyboard type: Default for Data Type
                                                              • Go to next field using: Tab key
                                                              No

                                                              Field Name: PDFKit Print Documents::PaperName
                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                              • Top: 220 pt
                                                              • Left: 747 pt
                                                              • Bottom: 251 pt
                                                              • Right: 1000 pt
                                                              • Anchoring: Left, Top
                                                              Field Format:
                                                              • Edit Box
                                                              Field Behavior:
                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                              • Touch keyboard type: Default for Data Type
                                                              • Go to next field using: Tab key
                                                              No

                                                              Field Name: PDFKit Print Documents::Duplex
                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                              • Top: 255 pt
                                                              • Left: 747 pt
                                                              • Bottom: 286 pt
                                                              • Right: 1000 pt
                                                              • Anchoring: Left, Top
                                                              Field Format:
                                                              • Edit Box
                                                              Field Behavior:
                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                              • Touch keyboard type: Default for Data Type
                                                              • Go to next field using: Tab key
                                                              No

                                                              Field Name: PDFKit Print Documents::PrinterTray
                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                              • Top: 290 pt
                                                              • Left: 747 pt
                                                              • Bottom: 321 pt
                                                              • Right: 1000 pt
                                                              • Anchoring: Left, Top
                                                              Field Format:
                                                              • Edit Box
                                                              Field Behavior:
                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                              • Touch keyboard type: Default for Data Type
                                                              • Go to next field using: Tab key
                                                              No

                                                              Field Name: PDFKit Print Documents::PrintSettings
                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                              • Top: 493 pt
                                                              • Left: 581 pt
                                                              • Bottom: 827 pt
                                                              • Right: 1014 pt
                                                              • Anchoring: Left, Top
                                                              Field Format:
                                                              • Edit Box
                                                              Field Behavior:
                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                              • Touch keyboard type: Default for Data Type
                                                              • Go to next field using: Tab key
                                                              No

                                                              Field Name: PDFKit Print Documents::Copies
                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                              • Top: 325 pt
                                                              • Left: 747 pt
                                                              • Bottom: 356 pt
                                                              • Right: 826 pt
                                                              • Anchoring: Left, Top
                                                              Field Format:
                                                              • Edit Box
                                                              Field Behavior:
                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                              • Touch keyboard type: Default for Data Type
                                                              • Go to next field using: Tab key
                                                              No

                                                              Field Name: PDFKit Print Documents::FirstPage
                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                              • Top: 360 pt
                                                              • Left: 747 pt
                                                              • Bottom: 391 pt
                                                              • Right: 826 pt
                                                              • Anchoring: Left, Top
                                                              Field Format:
                                                              • Edit Box
                                                              Field Behavior:
                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                              • Touch keyboard type: Default for Data Type
                                                              • Go to next field using: Tab key
                                                              No

                                                              Field Name: PDFKit Print Documents::LastPage
                                                              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                              • Top: 395 pt
                                                              • Left: 747 pt
                                                              • Bottom: 426 pt
                                                              • Right: 826 pt
                                                              • Anchoring: Left, Top
                                                              Field Format:
                                                              • Edit Box
                                                              Field Behavior:
                                                              • Allow field to be entered: In Find mode, In Browse mode
                                                              • Touch keyboard type: Default for Data Type
                                                              • Go to next field using: Tab key
                                                              No

                                                              Buttons

                                                              Button PropertiesCoordinatesScript/Script Step
                                                                Type:
                                                              • Text: Create PDF
                                                              • Top: 530 pt
                                                              • Left: 402 pt
                                                              • Bottom: 566 pt
                                                              • Right: 551 pt
                                                              • Anchoring: Left, Top
                                                              Perform Script [ “Run Create PDF” ]

                                                              Scripts:


                                                              Button PropertiesCoordinatesScript/Script Step
                                                                Type:
                                                              • Text: Print PDF
                                                              • Top: 578 pt
                                                              • Left: 402 pt
                                                              • Bottom: 614 pt
                                                              • Right: 551 pt
                                                              • Anchoring: Left, Top
                                                              Perform Script [ “Run Print” ]

                                                              Scripts:


                                                              Button PropertiesCoordinatesScript/Script Step
                                                                Type:
                                                              • Text: Pick Printer
                                                              • Top: 168 pt
                                                              • Left: 851 pt
                                                              • Bottom: 204 pt
                                                              • Right: 1000 pt
                                                              • Anchoring: Left, Top
                                                              Perform Script [ “Pick Printer” ]

                                                              Scripts:


                                                              Script Hierarchy

                                                              Create PDF
                                                              Convert Office File
                                                              Print
                                                              Pick Printer
                                                              Run Print
                                                              Run Create PDF
                                                              Clear

                                                              Next Script: [Convert Office File]
                                                              Script NameCreate PDF
                                                              Run script with full access privilegesOff
                                                              Siri Shortcut VisibleOff
                                                              Include In MenuNo
                                                              Layouts that use this script
                                                                Scripts that use this script
                                                                Script Definition
                                                                Script Steps
                                                                • Set Variable [ $types; Value:MBS( "Container.GetTypes"; PDFKit Print Documents::Document ) ]
                                                                • Set Field [ PDFKit Print Documents::PDF; "" ]
                                                                • If [ Position ( $types ; "PDF " ; 1 ; 1 ) >= 1 ]
                                                                • #we got a PDF
                                                                • Set Field [ PDFKit Print Documents::PDF; PDFKit Print Documents::Document ]
                                                                • Exit Script [ Result: "OK" ]
                                                                • End If
                                                                • If [ Position ( $types ; "TIFF" ; 1 ; 1 ) >= 1 or Position ( $types ; "PNGf" ; 1 ; 1 ) >= 1 or Position ( $types ; "JPEG" ; 1 ; 1 ) >= 1 or Position ( $types ; "GIFf" ; 1 ; 1 ) >= 1 ]
                                                                • #we got a picture
                                                                • Set Variable [ $pdf; Value:MBS( "PDFKit.NewPDFDocument" ) ]
                                                                • Set Variable [ $r; Value:MBS( "PDFKit.AddImagePage"; $pdf; PDFKit Print Documents::Document) ]
                                                                • Set Field [ PDFKit Print Documents::PDF; MBS( "PDFKit.GetPDFDocument"; $pdf; "picture.pdf" ) ]
                                                                • Set Variable [ $r; Value:MBS( "PDFKit.Release"; $pdf) ]
                                                                • Exit Script [ Result: "OK" ]
                                                                • End If
                                                                • If [ Position ( $types ; "FILE" ; 1 ; 1 ) >= 1 ]
                                                                • #we got a file
                                                                • Set Variable [ $path; Value:GetAsText(PDFKit Print Documents::Document) ]
                                                                • Set Variable [ $filename; Value:MBS( "Path.LastPathComponent"; $Path ) ]
                                                                • If [ Right ( $filename; 4 ) = ".doc" or Right ( $filename; 5 ) = ".docx" or Right ( $filename; 4 ) = ".ppt" or Right ( $filename; 5 ) = ".pptx" or Right ( $filename; 4 ) = ".xls" or Right ( $filename; 5 ) = ".xlsx" ]
                                                                • #we got an office file
                                                                • Perform Script [ “Convert Office File” ]
                                                                • Exit Script [ Result: Get(ScriptResult) ]
                                                                • End If
                                                                • If [ Right ( $filename; 4 ) = ".pdf" ]
                                                                • #we got a PDF
                                                                • Set Field [ PDFKit Print Documents::PDF; PDFKit Print Documents::Document ]
                                                                • Exit Script [ Result: "OK" ]
                                                                • End If
                                                                • Exit Script [ Result: "unhandled file extension for " & $filename ]
                                                                • End If
                                                                • Exit Script [ Result: "unhandled file type" ]
                                                                Fields used in this script
                                                                Scripts used in this script
                                                                Layouts used in this script
                                                                  Tables used in this script
                                                                  Table occurrences used by this script
                                                                  Custom Functions used by this script
                                                                    Custom menu set used by this script

                                                                      Previous Script: [Create PDF]Next Script: [Print]
                                                                      Script NameConvert Office File
                                                                      Run script with full access privilegesOff
                                                                      Siri Shortcut VisibleOff
                                                                      Include In MenuNo
                                                                      Layouts that use this script
                                                                        Scripts that use this script
                                                                        Script Definition
                                                                        Script Steps
                                                                        • Set Variable [ $DocumentPath; Value:GetAsText(PDFKit Print Documents::Document) ]
                                                                        • Set Variable [ $DocumentName; Value:MBS( "Path.LastPathComponent"; $DocumentPath ) ]
                                                                        • #temp position for input file
                                                                        • Set Variable [ $TempFolder; Value:MBS( "Folders.UserTemporary" ) ]
                                                                        • Set Variable [ $InputFolder; Value:MBS( "Path.AddPathComponent"; $TempFolder; "Input-" & Get(UUID) ) ]
                                                                        • Set Variable [ $InputFile; Value:MBS( "Path.AddPathComponent"; $InputFolder; $DocumentName ) ]
                                                                        • Set Variable [ $r; Value:MBS( "Files.CreateDirectory"; $InputFolder ) ]
                                                                        • #and output
                                                                        • Set Variable [ $OutputFolder; Value:MBS( "Path.AddPathComponent"; $TempFolder; "Output" & Get(UUID) ) ]
                                                                        • Set Variable [ $r; Value:MBS( "Files.CreateDirectory"; $OutputFolder ) ]
                                                                        • #write input file
                                                                        • Set Variable [ $result; Value:MBS( "Container.WriteFile"; PDFKit Print Documents::Document; $InputFile) ]
                                                                        • If [ MBS("IsError") ]
                                                                        • Exit Script [ Result: $result ]
                                                                        • End If
                                                                        • If [ MBS("IsWindows") ]
                                                                        • #using LibreOffice on Windows
                                                                        • Set Variable [ $AppPath; Value:"C:\Program Files\LibreOffice\program\soffice.exe" ]
                                                                        • Else If [ MBS("IsMacOS") ]
                                                                        • #using LibreOffice on MacOS
                                                                        • Set Variable [ $AppPath; Value:"/Applications/LibreOffice.app/Contents/MacOS/soffice" ]
                                                                        • Else If [ MBS("IsLinux") ]
                                                                        • #using LibreOffice on Linux
                                                                        • Set Variable [ $AppPath; Value:"/usr/bin/soffice" ]
                                                                        • Else
                                                                        • #cleanup & exit
                                                                        • Set Variable [ $r; Value:MBS( "Files.Delete"; $InputFile ) ]
                                                                        • Set Variable [ $r; Value:MBS( "Files.DeleteFolder"; $OutputFolder ) ]
                                                                        • Set Variable [ $r; Value:MBS( "Files.DeleteFolder"; $InputFolder ) ]
                                                                        • Exit Script [ Result: "Platform not supported." ]
                                                                        • End If
                                                                        • Set Variable [ $shell; Value:MBS( "Shell.New" ) ]
                                                                        • Set Variable [ $result; Value:MBS( "Shell.Execute"; $shell; $appPath; "--convert-to"; "pdf"; "--headless"; "--outdir"; $OutputFolder; $InputFile ) ]
                                                                        • If [ MBS("IsError") ]
                                                                        • Set Variable [ $e; Value:MBS("Shell.Release"; $shell) ]
                                                                        • Else
                                                                        • #running
                                                                        • Set Variable [ $e; Value:MBS( "Shell.Wait"; $shell; 5) ]
                                                                        • Set Variable [ $error; Value:MBS( "Shell.ReadErrorText"; $shell; "UTF-8") ]
                                                                        • Set Variable [ $output; Value:MBS( "Shell.ReadOutputText"; $shell; "UTF-8") ]
                                                                        • #maybe more?
                                                                        • Set Variable [ $e; Value:MBS( "Shell.Wait"; $shell; 5) ]
                                                                        • Set Variable [ $error; Value:$error & MBS( "Shell.ReadErrorText"; $shell; "UTF-8") ]
                                                                        • Set Variable [ $output; Value:$output & MBS( "Shell.ReadOutputText"; $shell; "UTF-8") ]
                                                                        • #check if output is there
                                                                        • Set Variable [ $files; Value:MBS( "Files.List"; $outputFolder; 1; ".pdf" ) ]
                                                                        • If [ ValueCount ( $files ) = 0 ]
                                                                        • Set Variable [ $result; Value:"Conversion failed: " & $error & ¶ & $output ]
                                                                        • Else
                                                                        • Set Variable [ $fileName; Value:GetValue($files; 1) ]
                                                                        • Set Variable [ $FilePath; Value:MBS( "Path.AddPathComponent"; $outputFolder; $fileName ) ]
                                                                        • Set Variable [ $PDF; Value:MBS( "Container.ReadFile"; $FilePath; "auto"; $fileName) ]
                                                                        • If [ MBS("IsError") ]
                                                                        • Set Variable [ $result; Value:$PDF ]
                                                                        • Else
                                                                        • Set Field [ PDFKit Print Documents::PDF; $PDF ]
                                                                        • Set Variable [ $result; Value:"OK" ]
                                                                        • End If
                                                                        • End If
                                                                        • End If
                                                                        • #cleanup
                                                                        • Set Variable [ $r; Value:MBS( "Files.Delete"; $FilePath ) ]
                                                                        • Set Variable [ $r; Value:MBS( "Files.Delete"; $InputFile ) ]
                                                                        • Set Variable [ $r; Value:MBS( "Files.DeleteFolder"; $OutputFolder ) ]
                                                                        • Set Variable [ $r; Value:MBS( "Files.DeleteFolder"; $InputFolder ) ]
                                                                        • Exit Script [ Result: $result ]
                                                                        Fields used in this script
                                                                        Scripts used in this script
                                                                          Layouts used in this script
                                                                            Tables used in this script
                                                                            Table occurrences used by this script
                                                                            Custom Functions used by this script
                                                                              Custom menu set used by this script

                                                                                Previous Script: [Convert Office File]Next Script: [Pick Printer]
                                                                                Script NamePrint
                                                                                Run script with full access privilegesOff
                                                                                Siri Shortcut VisibleOff
                                                                                Include In MenuNo
                                                                                Layouts that use this script
                                                                                  Scripts that use this script
                                                                                  Script Definition
                                                                                  Script Steps
                                                                                  • # Open PDF
                                                                                  • If [ IsEmpty ( PDFKit Print Documents::PDF ) ]
                                                                                  • Perform Script [ “Create PDF” ]
                                                                                  • Set Variable [ $Error; Value:Get(ScriptResult) ]
                                                                                  • If [ $Error ≠ "OK" ]
                                                                                  • Exit Script [ Result: $error ]
                                                                                  • End If
                                                                                  • End If
                                                                                  • Set Variable [ $PDF; Value:MBS( "PDFKit.OpenContainer"; PDFKit Print Documents::PDF) ]
                                                                                  • If [ MBS("IsError") ]
                                                                                  • Exit Script [ Result: "Failed to open PDF" ]
                                                                                  • End If
                                                                                  • #options
                                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.ResetPrintSettings" ) ]
                                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.SetPrintSetting"; "ShowsPrintPanel"; 0) ]
                                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.SetPrintSetting"; "ShowsProgressPanel"; 1) ]
                                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.SetPrintSetting"; "Copies"; 1) ]
                                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.SetPrintSetting"; "AutoRotate"; 1) ]
                                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.SetPrintSetting"; "scalingMode"; "ToFit") ]
                                                                                  • If [ Length ( PDFKit Print Documents::PaperName ) > 0 ]
                                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.SetPrintSetting"; "PaperName"; PDFKit Print Documents::PaperName) ]
                                                                                  • End If
                                                                                  • If [ Length ( PDFKit Print Documents::Duplex ) > 0 ]
                                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.SetPrintSetting"; "DuplexMode"; PDFKit Print Documents::Duplex) ]
                                                                                  • End If
                                                                                  • If [ Length ( PDFKit Print Documents::PrinterName ) > 0 ]
                                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.SetPrintSetting"; "Printer"; PDFKit Print Documents::PrinterName) ]
                                                                                  • End If
                                                                                  • If [ PDFKit Print Documents::Copies > 0 ]
                                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.SetPrintSetting"; "Copies"; PDFKit Print Documents::Copies) ]
                                                                                  • End If
                                                                                  • If [ PDFKit Print Documents::FirstPage > 0 ]
                                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.SetPrintSetting"; "FirstPage"; PDFKit Print Documents::FirstPage) ]
                                                                                  • End If
                                                                                  • If [ PDFKit Print Documents::LastPage > 0 ]
                                                                                  • Set Variable [ $r; Value:MBS( "PDFKit.SetPrintSetting"; "LastPage"; PDFKit Print Documents::LastPage) ]
                                                                                  • End If
                                                                                  • #Print
                                                                                  • Set Variable [ $r; Value:MBS("PDFKit.Print"; $pdf) ]
                                                                                  • Set Field [ PDFKit Print Documents::PrintSettings; MBS( "PDFKit.GetPrintLastSettings" ) ]
                                                                                  • # Release PDF
                                                                                  • Set Variable [ $r; Value:MBS("PDFKit.Release"; $pdf) ]
                                                                                  • Exit Script [ Result: $r ]
                                                                                  Fields used in this script
                                                                                  Scripts used in this script
                                                                                  Layouts used in this script
                                                                                    Tables used in this script
                                                                                    Table occurrences used by this script
                                                                                    Custom Functions used by this script
                                                                                      Custom menu set used by this script

                                                                                        Previous Script: [Print]Next Script: [Run Print]
                                                                                        Script NamePick Printer
                                                                                        Run script with full access privilegesOff
                                                                                        Siri Shortcut VisibleOff
                                                                                        Include In MenuYes
                                                                                        Layouts that use this script
                                                                                        Scripts that use this script
                                                                                          Script Definition
                                                                                          Script Steps
                                                                                          Fields used in this script
                                                                                          Scripts used in this script
                                                                                            Layouts used in this script
                                                                                              Tables used in this script
                                                                                              Table occurrences used by this script
                                                                                              Custom Functions used by this script
                                                                                                Custom menu set used by this script

                                                                                                  Previous Script: [Pick Printer]Next Script: [Run Create PDF]
                                                                                                  Script NameRun Print
                                                                                                  Run script with full access privilegesOff
                                                                                                  Siri Shortcut VisibleOff
                                                                                                  Include In MenuYes
                                                                                                  Layouts that use this script
                                                                                                  Scripts that use this script
                                                                                                    Script Definition
                                                                                                    Script Steps
                                                                                                    • Perform Script [ “Print” ]
                                                                                                    • Set Variable [ $result; Value:Get(ScriptResult) ]
                                                                                                    • If [ $result ≠ "OK" ]
                                                                                                    • Show Custom Dialog [ Title: "Fehler"; Message: $result; Default Button: “OK”, Commit: “Yes” ]
                                                                                                    • End If
                                                                                                    Fields used in this script
                                                                                                      Scripts used in this script
                                                                                                      Layouts used in this script
                                                                                                        Tables used in this script
                                                                                                          Table occurrences used by this script
                                                                                                            Custom Functions used by this script
                                                                                                              Custom menu set used by this script

                                                                                                                Previous Script: [Run Print]Next Script: [Clear]
                                                                                                                Script NameRun Create PDF
                                                                                                                Run script with full access privilegesOff
                                                                                                                Siri Shortcut VisibleOff
                                                                                                                Include In MenuYes
                                                                                                                Layouts that use this script
                                                                                                                Scripts that use this script
                                                                                                                  Script Definition
                                                                                                                  Script Steps
                                                                                                                  • Perform Script [ “Create PDF” ]
                                                                                                                  • Set Variable [ $result; Value:Get(ScriptResult) ]
                                                                                                                  • If [ $result ≠ "OK" ]
                                                                                                                  • Show Custom Dialog [ Title: "Fehler"; Message: $result; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                  • End If
                                                                                                                  Fields used in this script
                                                                                                                    Scripts used in this script
                                                                                                                    Layouts used in this script
                                                                                                                      Tables used in this script
                                                                                                                        Table occurrences used by this script
                                                                                                                          Custom Functions used by this script
                                                                                                                            Custom menu set used by this script

                                                                                                                              Previous Script: [Run Create PDF]
                                                                                                                              Script NameClear
                                                                                                                              Run script with full access privilegesOff
                                                                                                                              Siri Shortcut VisibleOff
                                                                                                                              Include In MenuYes
                                                                                                                              Layouts that use this script
                                                                                                                                Scripts that use this script
                                                                                                                                  Script Definition
                                                                                                                                  Script Steps
                                                                                                                                  • Replace Field Contents [ PDFKit Print Documents::PDF; Replace with calculation: "" ] [ No dialog ]
                                                                                                                                  • Replace Field Contents [ PDFKit Print Documents::PrintSettings; Replace with calculation: "" ] [ No dialog ]
                                                                                                                                  Fields used in this script
                                                                                                                                  Scripts used in this script
                                                                                                                                    Layouts used in this script
                                                                                                                                      Tables used in this script
                                                                                                                                      Table occurrences used by this script
                                                                                                                                      Custom Functions used by this script
                                                                                                                                        Custom menu set used by this script

                                                                                                                                          Download example: PDFKit Print Documents

                                                                                                                                          Used functions: