AutoCreateURL
IPDFDocument4 :: General document management :: Common

See Also Example
Collapse All

This property controls automatic URL creation.

Syntax

VARIANT_BOOL AutoCreateURL { get; set; }
Value
VARIANT_TRUE if automatic URL creation is turned on, VARIANT_FALSE otherwise

Remarks

If this property is set to VARIANT_TRUE and text written to a page (usingĀ ShowText, for example) contains anĀ "http://","mailto:", or "ftp://" prefixe, then a link to a URL is automatically appended to this text.

Example

How to Insert Text and a URL into a PDF Document

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.AutoCreateURL := false;
PDF.ShowTextAt(10, 10, 'As text: http://www.colorpilot.com');
PDF.AutoCreateURL := true;
PDF.ShowTextAt(10, 40, 'As link: http://www.colorpilot.com');
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->AutoCreateURL = false;
PDF->ShowTextAt(10, 10, "As text: http://www.colorpilot.com");
PDF->AutoCreateURL = true;
PDF->ShowTextAt(10, 40, "As link: http://www.colorpilot.com");
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.AutoCreateURL = false;
PDF.ShowTextAt(10, 10, "As text: http://www.colorpilot.com");
PDF.AutoCreateURL = true;
PDF.ShowTextAt(10, 40, "As link: http://www.colorpilot.com");
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.AutoCreateURL = false
PDF.ShowTextAt 10, 10, "As text: http://www.colorpilot.com"
PDF.AutoCreateURL = true
PDF.ShowTextAt 10, 40, "As link: http://www.colorpilot.com"

See Also

Reference