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

MBS FileMaker Plugin Example Databases

WinPDF

All examples are included with download of MBS FileMaker Plugin.

WinPDF.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts3
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
WinPDF
13 fields defined, 0 record
WinPDF

Fields

Table Name: WinPDF - 13 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PrimaryKeyNormal, TextAuto-Enter:
  • Context table: WinPDF
    Calculation: Get( UUID )
Validation:
  • Only during data entry
  • Not empty
  • Unique
  • Strict validation
Storage:
  • Repetitions: 1
  • Indexing: Minimal
  • Automatically create indexes as needed
  • Index Language: Unicode Raw
Unique identifier of each record in this table
          CreationTimestampNormal, TimestampAuto-Enter:
          • Creation timestamp
          Validation:
          • Only during data entry
          • Strict data type: 4 digit year
          • Not empty
          • Strict validation
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
          Date and time each record was created
                  CreatedByNormal, TextAuto-Enter:
                  • Creation account name
                  Validation:
                  • Only during data entry
                  • Not empty
                  • Strict validation
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                  Account name of the user who created each record
                          ModificationTimestampNormal, TimestampAuto-Enter:
                          • Modification timestamp
                          Validation:
                          • Only during data entry
                          • Strict data type: 4 digit year
                          • Not empty
                          • Strict validation
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                          Date and time each record was last modified
                                  ModifiedByNormal, TextAuto-Enter:
                                  • Modification account name
                                  Validation:
                                  • Only during data entry
                                  • Not empty
                                  • Strict validation
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German
                                  Account name of the user who last modified each record
                                          InputPDFNormal, BinaryAuto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Global
                                          • Repetitions: 1
                                              PageCountNormal, NumberAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Global
                                              • Repetitions: 1
                                              • Index Language: German
                                                  PageNormal, NumberAuto-Enter:
                                                  • Allow editing
                                                  Validation:
                                                  • Only during data entry
                                                  Storage:
                                                  • Repetitions: 1
                                                  • Indexing: None
                                                  • Automatically create indexes as needed
                                                  • Index Language: German
                                                      RotationNormal, NumberAuto-Enter:
                                                      • Allow editing
                                                      Validation:
                                                      • Only during data entry
                                                      Storage:
                                                      • Repetitions: 1
                                                      • Indexing: None
                                                      • Automatically create indexes as needed
                                                      • Index Language: German
                                                          ImageNormal, BinaryAuto-Enter:
                                                          • Allow editing
                                                          Validation:
                                                          • Only during data entry
                                                          Storage:
                                                          • Repetitions: 1
                                                              PasswordNormal, TextAuto-Enter:
                                                              • Allow editing
                                                              Validation:
                                                              • Only during data entry
                                                              Storage:
                                                              • Global
                                                              • Repetitions: 1
                                                              • Index Language: German
                                                                  WidthNormal, NumberAuto-Enter:
                                                                  • Allow editing
                                                                  Validation:
                                                                  • Only during data entry
                                                                  Storage:
                                                                  • Repetitions: 1
                                                                  • Indexing: None
                                                                  • Automatically create indexes as needed
                                                                  • Index Language: German
                                                                      HeightNormal, NumberAuto-Enter:
                                                                      • Allow editing
                                                                      Validation:
                                                                      • Only during data entry
                                                                      Storage:
                                                                      • Repetitions: 1
                                                                      • Indexing: None
                                                                      • Automatically create indexes as needed
                                                                      • Index Language: German

                                                                          Layout Objects: WinPDF

                                                                          Regular Fields

                                                                          Field Name: WinPDF::Page
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 201 pt
                                                                          • Left: 87 pt
                                                                          • Bottom: 233 pt
                                                                          • Right: 166 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: WinPDF::Rotation
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 243 pt
                                                                          • Left: 87 pt
                                                                          • Bottom: 275 pt
                                                                          • Right: 166 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: WinPDF::Image
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 201 pt
                                                                          • Left: 255 pt
                                                                          • Bottom: 451 pt
                                                                          • Right: 505 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: WinPDF::InputPDF
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 51 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 176 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: WinPDF::Password
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 52 pt
                                                                          • Left: 508 pt
                                                                          • Bottom: 84 pt
                                                                          • Right: 761 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: WinPDF::PageCount
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 116 pt
                                                                          • Left: 508 pt
                                                                          • Bottom: 148 pt
                                                                          • Right: 623 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: WinPDF::Width
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 285 pt
                                                                          • Left: 87 pt
                                                                          • Bottom: 317 pt
                                                                          • Right: 166 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: WinPDF::Height
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 321 pt
                                                                          • Left: 87 pt
                                                                          • Bottom: 353 pt
                                                                          • Right: 166 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

                                                                          Buttons

                                                                          Button PropertiesCoordinatesScript/Script Step
                                                                            Type:
                                                                          • Text: Insert PDF
                                                                          • Top: 97 pt
                                                                          • Left: 31 pt
                                                                          • Bottom: 129 pt
                                                                          • Right: 127 pt
                                                                          • Anchoring: Left, Top
                                                                          Perform Script [ “Insert PDF” ]

                                                                          Scripts:


                                                                          Button PropertiesCoordinatesScript/Script Step
                                                                            Type:
                                                                          • Text: Check Pages
                                                                          • Top: 116 pt
                                                                          • Left: 634 pt
                                                                          • Bottom: 148 pt
                                                                          • Right: 763 pt
                                                                          • Anchoring: Left, Top
                                                                          Perform Script [ “Check Pages” ]

                                                                          Scripts:


                                                                          Script Hierarchy

                                                                          Insert PDF
                                                                          Check Pages
                                                                          Clear

                                                                          Next Script: [Check Pages]
                                                                          Script NameInsert PDF
                                                                          Run script with full access privilegesOff
                                                                          Include In MenuYes
                                                                          Layouts that use this script
                                                                          Scripts that use this script
                                                                            Script Definition
                                                                            Script Steps
                                                                            • Insert File [ WinPDF::InputPDF ] [ Filters ] [ "PDF": ( *.pdf ) ] [ Storage method: Insert ] [ Display content ] [ Compression: Never compress ]
                                                                            • If [ Get(LastError) = 0 ]
                                                                            • Set Field [ WinPDF::PageCount; "" ]
                                                                            • Delete All Records [ No dialog ]
                                                                            • 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: [Insert PDF]Next Script: [Clear]
                                                                                    Script NameCheck Pages
                                                                                    Run script with full access privilegesOff
                                                                                    Include In MenuYes
                                                                                    Layouts that use this script
                                                                                    Scripts that use this script
                                                                                      Script Definition
                                                                                      Script Steps
                                                                                      • Set Variable [ $pdf; Value:MBS( "WinPDF.LoadContainer"; WinPDF::InputPDF; WinPDF::Password ) ]
                                                                                      • If [ MBS("IsError") ]
                                                                                      • Show Custom Dialog [ Title: "Failed to open PDF."; Message: $pdf; Default Button: “OK”, Commit: “Yes” ]
                                                                                      • Exit Script [ ]
                                                                                      • End If
                                                                                      • Delete All Records [ No dialog ]
                                                                                      • Set Variable [ $count; Value:MBS( "WinPDF.PageCount"; $pdf) ]
                                                                                      • Set Field [ WinPDF::PageCount; $count ]
                                                                                      • Set Variable [ $index; Value:0 ]
                                                                                      • If [ $count > 0 ]
                                                                                      • Loop
                                                                                      • New Record/Request
                                                                                      • Set Field [ WinPDF::Page; $index + 1 ]
                                                                                      • Set Field [ WinPDF::Rotation; MBS( "WinPDF.PageRotation"; $pdf; $index) ]
                                                                                      • Set Field [ WinPDF::Width; Round(MBS( "WinPDF.PageWidth"; $pdf; $index);0) ]
                                                                                      • Set Field [ WinPDF::Height; Round(MBS( "WinPDF.PageHeight"; $pdf; $index);0) ]
                                                                                      • Set Field [ WinPDF::Image; MBS( "WinPDF.PageImageAtSize"; $pdf; $index; 0; 600; "JPEG"; "page" & ($index+1) & ".jpg") ]
                                                                                      • Commit Records/Requests [ No dialog ]
                                                                                      • Set Variable [ $index; Value:$index + 1 ]
                                                                                      • Exit Loop If [ $index ≥ $count ]
                                                                                      • End Loop
                                                                                      • End If
                                                                                      • Set Variable [ $r; Value:MBS( "WinPDF.Release"; $pdf) ]
                                                                                      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: [Check Pages]
                                                                                              Script NameClear
                                                                                              Run script with full access privilegesOff
                                                                                              Include In MenuYes
                                                                                              Layouts that use this script
                                                                                                Scripts that use this script
                                                                                                  Script Definition
                                                                                                  Script Steps
                                                                                                  • Delete All Records [ No dialog ]
                                                                                                  • Set Field [ WinPDF::PageCount; "" ]
                                                                                                  • Set Field [ WinPDF::Password; "" ]
                                                                                                  • Set Field [ WinPDF::InputPDF; "" ]
                                                                                                  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: WinPDF

                                                                                                          Used functions: