MBS FileMaker Plugin Example Databases

PDF Font Info

All examples are included with download of MBS FileMaker Plugin.

PDF Font Info.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
System Font Info
18 fields defined, 0 record
System Font Info

Fields

Table Name: System Font Info - 18 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
PDFNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Global
  • Repetitions: 1
      BaseEncodingNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          BaseFontNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              CapHeightNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  CMapNameNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      FirstCharNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German
                          FontFamilyNormal, TextAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                              FontFilePathNormal, TextAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              Storage:
                              • Repetitions: 1
                              • Indexing: None
                              • Automatically create indexes as needed
                              • Index Language: German
                                  FontFileTypeNormal, TextAuto-Enter:
                                  • Allow editing
                                  Validation:
                                  • Only during data entry
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German
                                      FontNameNormal, TextAuto-Enter:
                                      • Allow editing
                                      Validation:
                                      • Only during data entry
                                      Storage:
                                      • Repetitions: 1
                                      • Indexing: None
                                      • Automatically create indexes as needed
                                      • Index Language: German
                                          FontStretchNormal, TextAuto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                          • Indexing: None
                                          • Automatically create indexes as needed
                                          • Index Language: German
                                              FontTypeNormal, TextAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Repetitions: 1
                                              • Indexing: None
                                              • Automatically create indexes as needed
                                              • Index Language: German
                                                  FontWeightNormal, TextAuto-Enter:
                                                  • Allow editing
                                                  Validation:
                                                  • Only during data entry
                                                  Storage:
                                                  • Repetitions: 1
                                                  • Indexing: None
                                                  • Automatically create indexes as needed
                                                  • Index Language: German
                                                      FullNameNormal, TextAuto-Enter:
                                                      • Allow editing
                                                      Validation:
                                                      • Only during data entry
                                                      Storage:
                                                      • Repetitions: 1
                                                      • Indexing: None
                                                      • Automatically create indexes as needed
                                                      • Index Language: German
                                                          LangNormal, TextAuto-Enter:
                                                          • Allow editing
                                                          Validation:
                                                          • Only during data entry
                                                          Storage:
                                                          • Repetitions: 1
                                                          • Indexing: None
                                                          • Automatically create indexes as needed
                                                          • Index Language: German
                                                              LastCharNormal, TextAuto-Enter:
                                                              • Allow editing
                                                              Validation:
                                                              • Only during data entry
                                                              Storage:
                                                              • Repetitions: 1
                                                              • Indexing: None
                                                              • Automatically create indexes as needed
                                                              • Index Language: German
                                                                  PostScriptNameNormal, TextAuto-Enter:
                                                                  • Allow editing
                                                                  Validation:
                                                                  • Only during data entry
                                                                  Storage:
                                                                  • Repetitions: 1
                                                                  • Indexing: None
                                                                  • Automatically create indexes as needed
                                                                  • Index Language: German
                                                                      XHeightNormal, TextAuto-Enter:
                                                                      • Allow editing
                                                                      Validation:
                                                                      • Only during data entry
                                                                      Storage:
                                                                      • Repetitions: 1
                                                                      • Indexing: None
                                                                      • Automatically create indexes as needed
                                                                      • Index Language: German

                                                                          Layout Objects: System Font Info

                                                                          Regular Fields

                                                                          Field Name: System Font Info::BaseEncoding
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 120 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 134 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::BaseFont
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 138 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 152 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::CapHeight
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 156 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 170 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::CMapName
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 174 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 188 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::FirstChar
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 192 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 206 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::FontFamily
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 210 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 224 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::FontFilePath
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 228 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 242 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::FontFileType
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 246 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 260 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::FontName
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 264 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 278 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::FontStretch
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 282 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 296 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::PDF
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 6 pt
                                                                          • Left: 306 pt
                                                                          • Bottom: 110 pt
                                                                          • Right: 553 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: System Font Info::FontType
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 300 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 314 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::FontWeight
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 318 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 332 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::FullName
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 336 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 350 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::Lang
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 354 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 368 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::LastChar
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 372 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 386 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::PostScriptName
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 390 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 404 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Field Name: System Font Info::XHeight
                                                                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                          • Top: 408 pt
                                                                          • Left: 138 pt
                                                                          • Bottom: 422 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: System Default
                                                                          • Go to next field using: Tab key
                                                                          Yes

                                                                          Group Buttons

                                                                          Button PropertiesCoordinatesScript/Script Step
                                                                            Type:
                                                                          • Text: List Fonts In PDF
                                                                            Additional Properties:
                                                                          • Change to hand cursor over button
                                                                          • Rectangular
                                                                          • Top: 12 pt
                                                                          • Left: 66 pt
                                                                          • Bottom: 37 pt
                                                                          • Right: 211 pt
                                                                          • Anchoring: Left, Top
                                                                          Perform Script [ “Run” ]

                                                                          Scripts:


                                                                          Script Hierarchy

                                                                          InitDynaPDF
                                                                          Run
                                                                          Clear

                                                                          Next Script: [Run]
                                                                          Script NameInitDynaPDF
                                                                          Run script with full access privilegesOff
                                                                          Include In MenuNo
                                                                          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 [ $r; Value:MBS( "DynaPDF.Initialize"; $path) ]
                                                                            • If [ $r ≠ "OK" ]
                                                                            • Show Custom Dialog [ Title: "DynaPDF failed to initialize"; Message: $r; Default Button: “OK”, Commit: “No”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                            • Else
                                                                            • Set Variable [ $$DynaPDFInited; Value:1 ]
                                                                            • 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: [InitDynaPDF]Next Script: [Clear]
                                                                                          Script NameRun
                                                                                          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 [ $r; Value:MBS("Trace"; "/tmp/trace.txt") ]
                                                                                            • #Initialize DynaPDF if needed
                                                                                            • If [ MBS("DynaPDF.IsInitialized") ≠ 1 ]
                                                                                            • Perform Script [ “InitDynaPDF” ]
                                                                                            • End If
                                                                                            • Delete All Records [ No dialog ]
                                                                                            • #new document
                                                                                            • Set Variable [ $pdf; Value:MBS("DynaPDF.New") ]
                                                                                            • #Load PDF from container
                                                                                            • Set Variable [ $r; Value:MBS("DynaPDF.OpenPDFFromContainer"; $pdf; System Font Info::PDF) ]
                                                                                            • #import a page
                                                                                            • Set Variable [ $r; Value:MBS("DynaPDF.ImportPDFFile"; $pdf; 1) ]
                                                                                            • #List fonts in PDF
                                                                                            • Set Variable [ $FontCount; Value:MBS("DynaPDF.GetFontCount"; $pdf) ]
                                                                                            • If [ $FontCount > 0 ]
                                                                                            • Set Variable [ $index; Value:0 ]
                                                                                            • Loop
                                                                                            • #Get values
                                                                                            • New Record/Request
                                                                                            • Set Field [ System Font Info::BaseEncoding; MBS("DynaPDF.FontInfo"; $pdf; $Index; "BaseEncoding") ]
                                                                                            • Set Field [ System Font Info::BaseFont; MBS("DynaPDF.FontInfo"; $pdf; $Index; "BaseFont") ]
                                                                                            • Set Field [ System Font Info::CapHeight; MBS("DynaPDF.FontInfo"; $pdf; $Index; "CapHeight") ]
                                                                                            • Set Field [ System Font Info::CMapName; MBS("DynaPDF.FontInfo"; $pdf; $Index; "CMapName") ]
                                                                                            • Set Field [ System Font Info::FirstChar; MBS("DynaPDF.FontInfo"; $pdf; $Index; "FirstChar") ]
                                                                                            • Set Field [ System Font Info::FontFamily; MBS("DynaPDF.FontInfo"; $pdf; $Index; "FontFamily") ]
                                                                                            • Set Field [ System Font Info::FontFilePath; MBS("DynaPDF.FontInfo"; $pdf; $Index; "FontFilePath") ]
                                                                                            • Set Field [ System Font Info::FontFileType; MBS("DynaPDF.FontInfo"; $pdf; $Index; "FontFileType") ]
                                                                                            • Set Field [ System Font Info::FontName; MBS("DynaPDF.FontInfo"; $pdf; $Index; "FontName") ]
                                                                                            • Set Field [ System Font Info::FontStretch; MBS("DynaPDF.FontInfo"; $pdf; $Index; "FontStretch") ]
                                                                                            • Set Field [ System Font Info::FontType; MBS("DynaPDF.FontInfo"; $pdf; $Index; "FontType") ]
                                                                                            • Set Field [ System Font Info::FontWeight; MBS("DynaPDF.FontInfo"; $pdf; $Index; "FontWeight") ]
                                                                                            • Set Field [ System Font Info::FullName; MBS("DynaPDF.FontInfo"; $pdf; $Index; "FullName") ]
                                                                                            • Set Field [ System Font Info::Lang; MBS("DynaPDF.FontInfo"; $pdf; $Index; "Lang") ]
                                                                                            • Set Field [ System Font Info::LastChar; MBS("DynaPDF.FontInfo"; $pdf; $Index; "LastChar") ]
                                                                                            • Set Field [ System Font Info::PostScriptName; MBS("DynaPDF.FontInfo"; $pdf; $Index; "PostScriptName") ]
                                                                                            • Set Field [ System Font Info::XHeight; MBS("DynaPDF.FontInfo"; $pdf; $Index; "XHeight") ]
                                                                                            • Commit Records/Requests [ Skip data entry validation; No dialog ]
                                                                                            • #Next
                                                                                            • Set Variable [ $Index; Value:1 + $Index ]
                                                                                            • Exit Loop If [ $Index >= $FontCount ]
                                                                                            • End Loop
                                                                                            • End If
                                                                                            • #Release memory
                                                                                            • Set Variable [ $r; Value:MBS("DynaPDF.Release"; $pdf) ]
                                                                                            • #Done
                                                                                            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]
                                                                                                  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 ]
                                                                                                      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 Font Info

                                                                                                                    Used functions:




                                                                                                                    Links
                                                                                                                    MBS Xojo tutorial videos