PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis method controls automatic URL creation.
|
| VARIANT_BOOL AutoCreateURL { get; } |
Value
VARIANT_TRUE if automatic URL creation is turned on. VARIANT_FALSE if it is turned off.
Remarks
If AutoCreateURL equals VARIANT_TRUE and text written to a page (usingĀ ShowText for example) contains "http://","mailto:","ftp://" prefixes, then a link to an 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


