Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
11.4
11.5
12.0
12.1
12.2
12.3
12.4
12.5
13.0
13.1
Statistic
FMM
Blog
DynaPDF.IsInitialized
Checks if DynaPDF library has been initialized.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 4.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
none
Result
Returns 1 or 0.
Description
Checks if DynaPDF library has been initialized.If value is 1, everything is okay.
If value is zero, the library is not initialized and you need to call DynaPDF.Initialize function.
On a hosted database this function is better than using a global variable, as the variable can't see if initialization was made on server or client side.
Examples
Initialize when needed:
#Initialize DynaPDF
If [MBS( "DynaPDF.IsInitialized" ) ≠ 1]
If [Get ( SystemPlatform ) = -3]
# iOS
Exit Script []
Else If [Get ( SystemPlatform ) = -2]
# Windows
Set Variable [$path; Value: "dynapdf.dll"]
Else
# Mac
Set Variable [$path; Value: "dynapdf.dylib"]
End If
Set Variable [$r; Value: MBS( "DynaPDF.Initialize"; $path; "12345..." )]
If [$r ≠ "OK"]
Show Custom Dialog [ "DynaPDF failed to initialize"; $r]
End If
End If
See also
- DynaPDF.GetImportPageBounds
- DynaPDF.Print
- DynaPDF.Print.SetDevMode
- DynaPDF.ReplaceImage
- DynaPDF.SaveAndSignFileExt
- DynaPDF.Table.Create
- DynaPDF.Table.Draw
- DynaPDF.Uninitialize
- IsRegistered
- PDFKit.GeneratePreview
Example Databases
- DynaPDF/Add Weblinks
- DynaPDF/Convert to PDFA
- DynaPDF/Generate Previews
- DynaPDF/List Images
- DynaPDF/Merge PDFs to File
- DynaPDF/Place Picture
- DynaPDF/Show PDF Fields
- DynaPDF/Swiss QRCode
- DynaPDF/System Font Info
- DynaPDF/ZUGFeRD
Blog Entries
- Add page links for FileMaker
- Adding cutting lines for PDF in FileMaker
- Example Script for DynaPDF.FindText and DynaPDF.WebLink
- FileMaker with ZUGFeRD 2.0 and Factur-X
- How to Convert a PDF document to a PDF/A
- PDF Forms with MBS Plugin
- Creating PDF/A in FileMaker with ZUGFeRD standard
- Creating PDF/A in FileMaker with ZUGFeRD standard
- Properly register MBS FileMaker Plugin
- When to initialize plugin libraries
FileMaker Magazin
This function does not need a paid license.
Created 18th August 2014, last changed 18th December 2015
