Using DynaPdfMBS in Xojo Web 2.0

Using DynaPdfMBS in Xojo Web 2.0

If you want to use the fantastic DynaPdf Xojo Plugin from MBS be aware that you have to tell the plugin where to find the fonts.

It is documented in the plugin but a bit hard to find, and the sad news is that you won’t get an error message, the creation of the pdf is just not working.

Installing the Microsoft fonts on Ubuntu

It is as simple as executing the following command:

sudo apt install ttf-mscorefonts-installer

You will find the newly installed fonts under the following path:

/usr/share/fonts/truetype/msttcorefonts

Customization in Xojo

Ensure that you are telling the plugin where to find the fonts. In the above example your Xojo Code has to look like follows:

var pdf as new DynaPDFMBS if TargetLinux then call pdf.AddFontSearchPath "/usr/share/fonts/truetype/msttcorefonts", true end if