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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

DynaPDF.ConvertStyledText

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

Parameters

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

Result

Returns text or error.

Description

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.

Examples

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

Created 13th October 2016, last changed 24th February 2021


DynaPDF.ConvertColors - DynaPDF.CreateAxialShading

Feedback: Report problem or ask question.




Links
MBS FileMaker blog

Start Chat