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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DynaPDF.IsInitialized
Checks if DynaPDF library has been initialized.
| Component | Version | macOS | Windows | Linux | Server | FileMaker 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.FlattenAnnots
- DynaPDF.Optimize
- DynaPDF.Print
- DynaPDF.Print.SetDevMode
- DynaPDF.ReplaceImage
- DynaPDF.Table.Create
- DynaPDF.Table.Draw
- DynaPDF.Uninitialize
- IsRegistered
- PDFKit.GeneratePreview
Example Databases
- DynaPDF/Add Page Numbers
- DynaPDF/Generate Previews
- DynaPDF/Invoice/Invoice
- DynaPDF/List XFA Fields
- DynaPDF/List XFA Streams
- DynaPDF/Merge PDFs to File
- DynaPDF/PDF Font Info
- DynaPDF/Picture to PDF
- DynaPDF/Print PDF
- DynaPDF/Replace Image
Blog Entries
- 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
- MBS Filemaker Plugin, version 4.2pr6
FileMaker Magazin
- Ausgabe 6/2020, Seite 32
- Ausgabe 3/2019, Seite 36, PDF
- Ausgabe 2/2019, Seite 27, PDF
- Ausgabe 2/2019, Seite 25, PDF
- Ausgabe 1/2018, Seite 24, PDF
- Ausgabe 1/2018, Seite 23, PDF
- Ausgabe 6/2017, Seite 26, PDF
- Ausgabe 6/2016, Seite 24
- Ausgabe 6/2016, Seite 23
Created 18th August 2014, last changed 18th December 2015
DynaPDF.IsEmptyPage - DynaPDF.LineAnnot
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins