Platforms to show: All Mac Windows Linux Cross-Platform
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 15.0 | Yes | Yes | Yes | Yes | All |
See also SetFieldFont function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 15.0 | Yes | Yes | Yes | Yes | All |
Notes:
The function requires a font handle that was returned by SetFieldFont.
Returns true on success and false on failure.
See also SetFieldFontEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetFieldFontSize function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetFieldHighlightMode function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetFieldIndex function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Notes: The parameter name is converted to unicode.
See also SetFieldMapName function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.3 | Yes | Yes | Yes | Yes | All |
See also SetFieldMapName function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetFieldName function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 16.0 | Yes | Yes | Yes | Yes | All |
See also SetFieldName function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetFieldOrientation function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetFieldTextAlign function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetFieldTextColor function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Notes: The value parameter is converted to unicode.
See also SetFieldToolTip function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.3 | Yes | Yes | Yes | Yes | All |
See also SetFieldToolTip function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 14.0 | Yes | Yes | Yes | Yes | All |
Notes:
Raises an exception if current color space is CMYK or Gray and not RGB.
The parameter Color must be defined in the current color space.
See also:
- SetFillColor(ColorValue as Integer) as Boolean
- SetFillColor(values() as Double) as boolean
- SetFillColor(values() as single) as boolean
See also SetFillColor function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Example:
// new DynaPDF Object. Use your own subclass to catch errors in error event
dim pdf as new DynaPDFMBS
// For this example you can use a Starter, Lite, Pro or Enterprise License
pdf.SetLicenseKey "Starter"
// destination pdf file
dim f as FolderItem = SpecialFolder.Desktop.Child("test.pdf")
// create new pdf document
call pdf.CreateNewPDF f
// add new page
call pdf.append
// set red text color
call pdf.SetFillColor pdf.RGB(255,0,0)
// set font
call pdf.SetFont "Times", pdf.kfsItalic, 40.0, true, pdf.kcp1252
// write some text
call pdf.WriteFText pdf.ktaCenter, "My first PDF!"
// close page
call pdf.EndPage
// close file
call pdf.CloseFile
// open in users preferred PDF viewer application
f.Launch
See also:
- SetFillColor(ColorValue as Color) as Boolean
- SetFillColor(values() as Double) as boolean
- SetFillColor(values() as single) as boolean
See also SetFillColor function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 11.2 | Yes | Yes | Yes | Yes | All |
Example:
// new DynaPDF Object. Use your own subclass to catch errors in error event
dim pdf as new DynaPDFMBS
// For this example you can use a Starter, Lite, Pro or Enterprise License
pdf.SetLicenseKey "Starter"
// destination pdf file
dim f as FolderItem = SpecialFolder.Desktop.Child("test.pdf")
// create new pdf document
call pdf.CreateNewPDF f
// add new page
call pdf.append
// set blue text color with values in memoryblock
dim colorvalues() as Double = array(0.0, 1.0, 0.0)
call pdf.SetFillColor colorvalues
// set font
call pdf.SetFont "Times", pdf.kfsItalic, 40.0, true, pdf.kcp1252
// write some text
call pdf.WriteFText pdf.ktaCenter, "My first PDF!"
// close page
call pdf.EndPage
// close file
call pdf.CloseFile
// open in users preferred PDF viewer application
f.Launch
See also:
- SetFillColor(ColorValue as Color) as Boolean
- SetFillColor(ColorValue as Integer) as Boolean
- SetFillColor(values() as single) as boolean
See also SetFillColor function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 11.2 | Yes | Yes | Yes | Yes | All |
Notes: The number of components must match.
See also:
- SetFillColor(ColorValue as Color) as Boolean
- SetFillColor(ColorValue as Integer) as Boolean
- SetFillColor(values() as Double) as boolean
See also SetFillColor function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 9.1 | Yes | Yes | Yes | Yes | All |
Example:
// new DynaPDF Object. Use your own subclass to catch errors in error event
dim pdf as new DynaPDFMBS
// For this example you can use a Starter, Lite, Pro or Enterprise License
pdf.SetLicenseKey "Starter"
// destination pdf file
dim f as FolderItem = SpecialFolder.Desktop.Child("test.pdf")
// create new pdf document
call pdf.CreateNewPDF f
// add new page
call pdf.append
// set blue text color with values in memoryblock
dim m as new MemoryBlock(3)
m.Byte(0) = 0
m.Byte(1) = 0
m.Byte(2) = 255
call pdf.SetFillColorEx m,3
// set font
call pdf.SetFont "Times", pdf.kfsItalic, 40.0, true, pdf.kcp1252
// write some text
call pdf.WriteFText pdf.ktaCenter, "My first PDF!"
// close page
call pdf.EndPage
// close file
call pdf.CloseFile
// open in users preferred PDF viewer application
f.Launch
See also:
See also SetFillColorEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 9.1 | Yes | Yes | Yes | Yes | All |
Example:
// new DynaPDF Object. Use your own subclass to catch errors in error event
dim pdf as new DynaPDFMBS
// For this example you can use a Starter, Lite, Pro or Enterprise License
pdf.SetLicenseKey "Starter"
// destination pdf file
dim f as FolderItem = SpecialFolder.Desktop.Child("test.pdf")
// create new pdf document
call pdf.CreateNewPDF f
// add new page
call pdf.append
// set red text color
call pdf.SetFillColorEx 255,0,0
// set font
call pdf.SetFont "Times", pdf.kfsItalic, 40.0, true, pdf.kcp1252
// write some text
call pdf.WriteFText pdf.ktaCenter, "My first PDF!"
// close page
call pdf.EndPage
// close file
call pdf.CloseFile
// open in users preferred PDF viewer application
f.Launch
See also:
See also SetFillColorEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetFillColorSpace function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 16.5 | Yes | Yes | Yes | Yes | All |
Notes:
The default precision for text and vector graphics is two decimal digits. This corresponds to 7200 DPI. The output precision of bezier curves is one higher as for vector graphics. The maximum output precision is 5 decimal digits.
Note that higher values increase the resulting file size.
NumTextDecDigits: Number decimal digits for text object.
NumVectDecDigits: Number of decimal digits for vector objects.
Returns boolean, true for success.
See also SetFloatPrecision function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Notes:
The name parameter is converted to unicode.
If font is not found by name, please check SetFontSelMode function.
See also SetFont function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.3 | Yes | Yes | Yes | Yes | All |
Example:
dim pdf as DynaPDFMBS // your PDF object
call pdf.SetFontAnsi("Helvetica", pdf.kfsNone, 10.0, true, pdf.kcp1252)
The name parameter is converted to ANSI.
If font is not found by name, please check SetFontSelMode function.
See also SetFont function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.3 | Yes | Yes | Yes | Yes | All |
Notes:
The name parameter is converted to unicode.
If font is not found by name, please check SetFontSelMode function.
See also SetFontEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.3 | Yes | Yes | Yes | Yes | All |
The name parameter is converted to ANSI.
If font is not found by name, please check SetFontSelMode function.
See also SetFontEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetFontOrigin function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 10.1 | Yes | Yes | Yes | Yes | All |
Notes:
The values in the array use this constants:
kfbtTrueType | TrueType, TrueType Collections, or OpenType fonts with TrueType outlines |
kfbtType1 | Type1 font |
kfbtOpenType | OpenType font with Postscript outlines |
kfbtStdFont | PDF Standard font |
kfbtDisabled | This value can be used to disable a specific font format. |
The array has 4 values.
See also SetFontSearchOrder function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 11.1 | Yes | Yes | Yes | Yes | All |
Notes: use the font base constants.
See also SetFontSearchOrderEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetFontSelMode function in DynaPDF manual.
The items on this page are in the following plugins: MBS DynaPDF Plugin.

Links
MBS FileMaker blog