Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.CreateURIAction

Creates an URI Action.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 14.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.CreateURIAction"; PDF; URL )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
URL URL of a website. "https://www.monkeybreadsoftware.com/filemaker/"

Result

Returns number or error.

Description

Creates an URI Action.
A uniform resource identifier (URI) is a string that identifies (resolves to) a resource on the internet - typically a file that is the destination of a hyperlink, although it can also resolve to a query or other entity. A URI action causes a URI to be resolved. The parameter URL must be 7-bit ASCII string.
Actions must be added to a PDF object with DynaPDF.AddActionToObj.
If the function succeeds the return value is the action handle, a value greater or equal zero. If the function fails the function returns an error.

See also CreateURIAction function in DynaPDF manual.

Examples

Create a button with a link action:

# add a button to open MBS website
Set Variable [ $r ; Value: MBS("DynaPDF.SetBorderStyle"; $pdf; "Bevelled") ]
Set Variable [ $Button ; Value: MBS( "DynaPDF.CreateButton"; $pdf; "MBSButton"; "Visit MBS Website"; -1; 350; 350; 200; 20 ) ]
Set Variable [ $Action ; Value: MBS( "DynaPDF.CreateURIAction"; $pdf; "https://www.monkeybreadsoftware.com/filemaker/" ) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.AddActionToObj"; $pdf; "Field"; "OnMouseUp"; $Action; $Button ) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 15th August 2024, last changed 6th March 2026


DynaPDF.CreateTextField - DynaPDF.CreateXFAStream