SetAutoCreateWebLinks

Text

Description

Enables or disables automatic URI link annotations for URL-like text drawn with DrawText

Syntax

Delphi

Function TPDFlib.SetAutoCreateWebLinks(Enable: Integer): Integer;

Parameters

Enable1 enables automatic links; 0 disables them

Return values

Returns the previous state: 1 when enabled before the call, otherwise 0

Remarks

The detector recognises http://, https://, www., ftp://, mailto:, and bare email addresses; www. targets gain an https:// scheme and bare addresses gain a mailto: scheme

Detection uses ASCII URI syntax and strips surrounding punctuation without removing balanced parentheses that belong to the target

See also

GetAutoCreateWebLinks, DrawText, AddLinkToWeb, ActivateWebLinks