SetAutoCreateWebLinks

文本

描述

启用或禁用针对用 DrawText 绘制的类似 URL 文本的自动 URI 链接注释

语法

Delphi

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

参数

Enable1 启用自动链接;0 禁用自动链接

返回值

返回先前状态:调用前已启用时为 1,否则为 0

备注

检测器可识别 http://、https://、www.、ftp://、mailto: 和裸电子邮件地址;www. 目标会附加 https:// 方案,裸地址会附加 mailto: 方案

检测采用 ASCII URI 语法,并移除周围标点而不删除属于目标的平衡括号

另请参阅

GetAutoCreateWebLinks、DrawText、AddLinkToWeb、ActivateWebLinks