Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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 |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Color | The new color value in current color space. | 0 |
Returns OK or error.
See also SetFieldBorderColor function in DynaPDF manual.
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) ]
This function checks for a license.
Created 18th August 2014, last changed 29th October 2020