| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
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 |
|---|---|---|---|
| The PDF reference returned from DynaPDF.New. | |||
| Text | The text to write. | "Hello World" | |
| LeadingFactor | 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 Added in version 11.0. |
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.
MBS Plugin in version 11.5 with DynaPDF 4.0.62.160 adds support for double underlined text.
Examples
Convert text from field and write to new field:
Set Field [ Create Text::FText ; MBS("DynaPDF.ConvertStyledText"; $pdf; Create Text::Text) ]
See also
- DynaPDF.GetFTextHeight
- DynaPDF.GetFTextHeightEx
- DynaPDF.New
- DynaPDF.Table.SetCellStyledText
- DynaPDF.Table.SetCellText
- DynaPDF.WriteFText
- DynaPDF.WriteStyledText
- DynaPDF.WriteStyledTextEx
Release notes
- Version 13.2
- Added new highlight style for DynaPDF.ConvertStyledText, DynaPDF.WriteStyledText and DynaPDF.WriteStyledTextEx.
- Version 12.1
- Changed DynaPDF.ConvertStyledText to handle .AppleSystemUIFont better and map to system font.
- Version 11.5
- Changed DynaPDF.ConvertStyledText to pass fonts as family names.
- Version 11.1
- Added superscript and subscript support DynaPDF.ConvertStyledText and related functions.
- 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.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 13.2pr4
- MBS FileMaker Plugin, version 12.1pr1
- Neues MBS FileMaker Plugin 11.5 - Über 6600 Funktionen in einem Plugin
- MBS FileMaker Plugin 11.5
- MBS FileMaker Plugin, version 11.5pr6
- MBS FileMaker Plugin, version 11.1pr7
- MBS FileMaker Plugin, version 11.0pr6
- MBS FileMaker Plugin, version 10.6pr3
FileMaker Magazin
This function checks for a license.
Created 13th October 2016, last changed 30th October 2021