Loading LibXL and DynaPDF libraries in our Xojo plugins
MsgBox "Version before: "+DynaPDFMBS.DynaPDFVersion
dim f as FolderItem = SpecialFolder.Desktop.Child("dynapdf.dylib")
if DynaPDFMBS.LoadLibrary(f) then
MsgBox "Version after: "+DynaPDFMBS.DynaPDFVersion
else
MsgBox DynaPDFMBS.LoadError
end if
The idea is that in case a bug is found in dynapdf or libxl or a newer version released, you can yourself get a copy of the library and load the newer library in the plugin. If you implement the optional dynamic loading of the library from e.g. application folder, you can provide your customers an update to libxl or dynapdf without recompiling the application.The new LoadLibrary function for DynaPDF will be available in 17.0pr2 plugins. Please do not hesitate to ask if you like to try it sooner.