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


Converts styled text to formatted text.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 6.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.ConvertStyledText"; PDF; Text { ; LeadingFactor } )   More


Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
Text The text to write. "Hello World"
LeadingFactor Available in MBS FileMaker Plugin 11.0 or newer.
If you pass a value > 0, the plugin will add \LD[] commands to styled text to set leading relative to font size. This way you define the spacing beteween lines.
1.2 Optional


Returns text or error.


Converts styled text to formatted text.
Requires an open page to load fonts.

DynaPDF.WriteStyledText does call DynaPDF.ConvertStyledText and then DynaPDF.WriteFText for your convenience. But you can do it manually to change the formatting commands if necessary.

Adding superscript and subscript support for plugin version 11.1.

MBS Plugin in version 11.5 with DynaPDF adds support for double underlined text.


Convert text from field and write to new field:

Set Field [ Create Text::FText ; MBS("DynaPDF.ConvertStyledText"; $pdf; Create Text::Text) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 13th October 2016, last changed 30th October 2021

DynaPDF.ConvertColors - DynaPDF.CreateAltFontList