Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Common
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

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots