MBS FileMaker Plugin Example Databases

PDF Differences

All examples are included with download of MBS FileMaker Plugin.

PDF Differences.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts3
Value Lists0
Custom Functions0
Custom Menus33
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
PDF Differences
11 fields defined, 1 record
PDF Differences

Fields

Table Name: PDF Differences - 11 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
Input1Normal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
      Input2Normal, BinaryAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
          PDF1 NameNormal, TextAuto-Enter: Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
                PDF2 NameNormal, TextAuto-Enter: Validation:
                • Only during data entry
                Storage:
                • Repetitions: 1
                • Indexing: None
                • Automatically create indexes as needed
                • Index Language: German
                      Output ContainerNormal, BinaryAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                          PageIndex1Normal, NumberAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                              PageIndex2Normal, NumberAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              Storage:
                              • Repetitions: 1
                              • Indexing: None
                              • Automatically create indexes as needed
                              • Index Language: German
                                  PDF1Normal, BinaryAuto-Enter:
                                  • Allow editing
                                  Validation:
                                  • Only during data entry
                                  Storage:
                                  • Repetitions: 1
                                      PDF2Normal, BinaryAuto-Enter:
                                      • Allow editing
                                      Validation:
                                      • Only during data entry
                                      Storage:
                                      • Repetitions: 1
                                          PageCountNormal, NumberAuto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                          • Indexing: None
                                          • Automatically create indexes as needed
                                          • Index Language: German
                                              PDF OutputNormal, BinaryAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Repetitions: 1

                                                  Layout Objects: PDF Differences

                                                  Regular Fields

                                                  Field Name: PDF Differences::Input1
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 36 pt
                                                  • Left: 6 pt
                                                  • Bottom: 433 pt
                                                  • Right: 289 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: System Default
                                                  • Go to next field using: Tab key
                                                  No

                                                  Field Name: PDF Differences::Input2
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 438 pt
                                                  • Left: 6 pt
                                                  • Bottom: 835 pt
                                                  • Right: 289 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: System Default
                                                  • Go to next field using: Tab key
                                                  No

                                                  Field Name: PDF Differences::PDF1 Name
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 168 pt
                                                  • Left: 870 pt
                                                  • Bottom: 182 pt
                                                  • Right: 1123 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: System Default
                                                  • Go to next field using: Tab key
                                                  Yes

                                                  Field Name: PDF Differences::PDF2 Name
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 318 pt
                                                  • Left: 870 pt
                                                  • Bottom: 332 pt
                                                  • Right: 1123 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: System Default
                                                  • Go to next field using: Tab key
                                                  Yes

                                                  Field Name: PDF Differences::Output Container
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 36 pt
                                                  • Left: 294 pt
                                                  • Bottom: 836 pt
                                                  • Right: 861 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: System Default
                                                  • Go to next field using: Tab key
                                                  No

                                                  Field Name: PDF Differences::PageIndex1
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 336 pt
                                                  • Left: 942 pt
                                                  • Bottom: 350 pt
                                                  • Right: 1021 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: System Default
                                                  • Go to next field using: Tab key
                                                  Yes

                                                  Field Name: PDF Differences::PageIndex2
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 354 pt
                                                  • Left: 942 pt
                                                  • Bottom: 368 pt
                                                  • Right: 1021 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: System Default
                                                  • Go to next field using: Tab key
                                                  Yes

                                                  Field Name: PDF Differences::PDF1
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 36 pt
                                                  • Left: 870 pt
                                                  • Bottom: 161 pt
                                                  • Right: 1123 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: System Default
                                                  • Go to next field using: Tab key
                                                  No

                                                  Field Name: PDF Differences::PDF2
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 186 pt
                                                  • Left: 870 pt
                                                  • Bottom: 311 pt
                                                  • Right: 1123 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: System Default
                                                  • Go to next field using: Tab key
                                                  No

                                                  Field Name: PDF Differences::PageCount
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 372 pt
                                                  • Left: 942 pt
                                                  • Bottom: 386 pt
                                                  • Right: 1021 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: System Default
                                                  • Go to next field using: Tab key
                                                  Yes

                                                  Field Name: PDF Differences::PDF Output
                                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                  • Top: 708 pt
                                                  • Left: 864 pt
                                                  • Bottom: 833 pt
                                                  • Right: 1117 pt
                                                  • Anchoring: Left, Top
                                                  Field Format:
                                                  • Edit Box
                                                  Field Behavior:
                                                  • Allow field to be entered: In Find mode, In Browse mode
                                                  • Touch keyboard type: System Default
                                                  • Go to next field using: Tab key
                                                  No

                                                  Group Buttons

                                                  Button PropertiesCoordinatesScript/Script Step
                                                    Type:
                                                  • Text: Compare PDF Pages
                                                    Additional Properties:
                                                  • Change to hand cursor over button
                                                  • Rectangular
                                                  • Top: 408 pt
                                                  • Left: 870 pt
                                                  • Bottom: 439 pt
                                                  • Right: 1015 pt
                                                  • Anchoring: Left, Top
                                                  Perform Script [ “Compare” ]

                                                  Scripts:


                                                  Button PropertiesCoordinatesScript/Script Step
                                                    Type:
                                                  • Text: Next Page
                                                    Additional Properties:
                                                  • Change to hand cursor over button
                                                  • Rectangular
                                                  • Top: 444 pt
                                                  • Left: 870 pt
                                                  • Bottom: 475 pt
                                                  • Right: 1015 pt
                                                  • Anchoring: Left, Top
                                                  Perform Script [ “NextPage” ]

                                                  Scripts:


                                                  Script Hierarchy

                                                  Compare
                                                  NextPage
                                                  InitDynaPDF

                                                  Next Script: [NextPage]
                                                  Script NameCompare
                                                  Run script with full access privilegesOff
                                                  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: [Compare]Next Script: [InitDynaPDF]
                                                        Script NameNextPage
                                                        Run script with full access privilegesOff
                                                        Include In MenuYes
                                                        Layouts that use this script
                                                        Scripts that use this script
                                                          Script Definition
                                                          Script Steps
                                                          • If [ IsEmpty(PDF Differences::PageCount) ]
                                                          • Perform Script [ “Compare” ]
                                                          • Else If [ PDF Differences::PageIndex1 < PDF Differences::PageCount ]
                                                          • Set Field [ PDF Differences::PageIndex1; 1 + PDF Differences::PageIndex1 ]
                                                          • Set Field [ PDF Differences::PageIndex2; 1 + PDF Differences::PageIndex2 ]
                                                          • Perform Script [ “Compare” ]
                                                          • Else
                                                          • Show Custom Dialog [ Title: "Done"; Message: "End of document."; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                                          • 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: [NextPage]
                                                                Script NameInitDynaPDF
                                                                Run script with full access privilegesOff
                                                                Include In MenuYes
                                                                Layouts that use this script
                                                                  Scripts that use this script
                                                                  Script Definition
                                                                  Script Steps
                                                                  • #Locate DynaPDF library
                                                                  • Set Variable [ $databasePath; Value:Get(FilePath) ]
                                                                  • Set Variable [ $databasePath; Value:MBS("Path.FilemakerPathToNativePath"; $databasePath) ]
                                                                  • Set Variable [ $databasePath; Value:Substitute ( $databasePath ; ".fp7" ; ".fmp12") ]
                                                                  • Set Variable [ $databaseName; Value:Get(FileName) & ".fmp12" ]
                                                                  • If [ Get(SystemPlatform) = -2 ]
                                                                  • Set Variable [ $path; Value:Substitute ( $databasePath ; $databaseName ; "dynapdf.dll" ) ]
                                                                  • Else
                                                                  • Set Variable [ $path; Value:Substitute ( $databasePath ; $databaseName ; "dynapdf.dylib" ) ]
                                                                  • End If
                                                                  • #Initialize DynaPDF
                                                                  • Set Variable [ $licenseKey; Value:"Pro" /* run in Demo pro mode */ ]
                                                                  • Set Variable [ $r; Value:MBS( "DynaPDF.Initialize"; $path; $licenseKey) ]
                                                                  • Set Variable [ $$DynaPDFInited; Value:1 ]
                                                                  • If [ $r ≠ "OK" ]
                                                                  • Show Custom Dialog [ Title: "DynaPDF failed to initialize"; Message: $r; Default Button: “OK”, Commit: “No”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                  • 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

                                                                                Download example: PDF Differences

                                                                                Used functions:




                                                                                Links
                                                                                MBS Xojo Chart Plugins