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

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
MBS( "DynaPDF.SetFieldBorderColor"; PDF; Color )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
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

Example Databases

Blog Entries

Created 18th August 2014, last changed 29th October 2020


DynaPDF.SetFieldBackColor - DynaPDF.SetFieldBorderStyle

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins

Start Chat