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   11.0    Statistic    FMM    Blog  

DynaPDF.ConvertStyledText

Converts styled text to formatted text.

Component Version macOS Windows Linux Server FileMaker 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.

Examples

Convert text from field and write to new field:

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

See also

Example Databases

Blog Entries

Release notes

  • Version 11.0
    • Added leading factor parameter for DynaPDF.ConvertStyledText, DynaPDF.WriteStyledText and DynaPDF.WriteStyledTextEx.
    • Changed DynaPDF.ConvertStyledText to fall back to Helvetica if font is not found.
    • Improved DynaPDF.ConvertStyledText to handle size difference better.

Created 13th October 2016, last changed 4th January 2021


DynaPDF.ConvertColors   -   DynaPDF.CreateAxialShading

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins

Start Chat