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

MBS FileMaker Plugin Example Databases

Watermark PDF Page

All examples are included with download of MBS FileMaker Plugin.

Watermark PDF Page.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts2
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
Watermark PDF Page
4 fields defined, 1 record
Watermark PDF Page

Fields

Table Name: Watermark PDF Page - 4 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
InputPDFNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
      OutputPDFNormal, BinaryAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
          ResultNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              WatermarkImageNormal, BinaryAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1

                  Layout Objects: Watermark PDF Page

                  Regular Fields

                  Field Name: Watermark PDF Page::InputPDF
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 24 pt
                  • Left: 138 pt
                  • Bottom: 149 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
                  No

                  Field Name: Watermark PDF Page::OutputPDF
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 150 pt
                  • Left: 138 pt
                  • Bottom: 275 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
                  No

                  Field Name: Watermark PDF Page::Result
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 276 pt
                  • Left: 138 pt
                  • Bottom: 290 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: Watermark PDF Page::WatermarkImage
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 294 pt
                  • Left: 138 pt
                  • Bottom: 419 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
                  No

                  Group Buttons

                  Button PropertiesCoordinatesScript/Script Step
                    Type:
                  • Text: Watermark centered
                    Additional Properties:
                  • Change to hand cursor over button
                  • Rectangular
                  • Top: 42 pt
                  • Left: 414 pt
                  • Bottom: 67 pt
                  • Right: 541 pt
                  • Anchoring: Left, Top
                  Perform Script [ “RunCenter” ]

                  Scripts:


                  Button PropertiesCoordinatesScript/Script Step
                    Type:
                  • Text: Watermark top right
                    Additional Properties:
                  • Change to hand cursor over button
                  • Rectangular
                  • Top: 78 pt
                  • Left: 415 pt
                  • Bottom: 103 pt
                  • Right: 542 pt
                  • Anchoring: Left, Top
                  Perform Script [ “RunBottomRight” ]

                  Scripts:


                  Script Hierarchy

                  RunCenter
                  RunBottomRight

                  Next Script: [RunBottomRight]
                  Script NameRunCenter
                  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("PDFKit.OpenContainer"; Watermark PDF Page::InputPDF) ]
                    • Set Field [ Watermark PDF Page::Result; MBS("PDFKit.Watermark"; $pdf; 0; Watermark PDF Page::WatermarkImage; ,5; 0; 0; 0; 0) ]
                    • Set Field [ Watermark PDF Page::OutputPDF; MBS( "PDFKit.GetPDFDocument"; $pdf; "test.pdf" ) ]
                    • Set Variable [ $result; Value:MBS("PDFKit.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: [RunCenter]
                            Script NameRunBottomRight
                            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("PDFKit.OpenContainer"; Watermark PDF Page::InputPDF) ]
                              • Set Field [ Watermark PDF Page::Result; MBS("PDFKit.Watermark"; $pdf; 0; Watermark PDF Page::WatermarkImage; ,5; -20; -20; 100; 100) ]
                              • Set Field [ Watermark PDF Page::OutputPDF; MBS( "PDFKit.GetPDFDocument"; $pdf; "test.pdf" ) ]
                              • Set Variable [ $result; Value:MBS("PDFKit.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

                                      Download example: Watermark PDF Page

                                      Used functions: