Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.SetFieldBorderColor
Sets the border color used for newly created interactive form fields and annotations.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 4.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Color | The new color value in current color space. | 0 |
Result
Returns OK or error.
Description
Sets the border color used for newly created interactive form fields and annotations.Normal annotations support RGB colors only. Form fields support the color spaces DeviceRGB, DeviceGray and DeviceCMYK. The color value must be defined in the current color space.
If the border should appear transparent set the color to NO_COLOR (4294967281).
Default value = 0 // Black
See also SetFieldBorderColor function in DynaPDF manual.
Examples
Set transparent border color:
MBS( "DynaPDF.SetFieldBorderColor"; $PDF; 4294967281 )
Add a text field with border color
# get a page imported before, so we can now edit the page
Set Variable [ $r ; Value: MBS("DynaPDF.EditPage"; $pdf; 1) ]
# for production, use transparent border
Set Variable [ $r ; Value: MBS( "DynaPDF.SetFieldBorderColor"; $PDF; 4294967281 ) ]
# for debugging, use red border
Set Variable [ $r ; Value: MBS( "DynaPDF.SetFieldBorderColor"; $PDF; 255 ) ]
# create a text field with given border color:
Set Variable [ $r ; Value: MBS("DynaPDF.CreateTextField"; $pdf; "Comments"; -1; 0; 0; 219; 70-26; 314; 26) ]
See also
- DynaPDF.CreateButton
- DynaPDF.EditPage
- DynaPDF.GetFieldBackColor
- DynaPDF.GetFieldBorderColor
- DynaPDF.GetFieldBorderStyle
- DynaPDF.GetFieldBorderWidth
- DynaPDF.GetFieldTextColor
- DynaPDF.New
- DynaPDF.SetFieldBorderStyle
- DynaPDF.SetFieldTextColor
Example Databases
Blog Entries
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 29th October 2020
