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.
General document methods
Abort
Aborted
AddColorTransformationRule
AddImageFromBitmapHandle
AddImageFromBuffer
AddImageFromFile
AddImageFromFilename
AddImageFromMemory
AddImageWithColorMask
AddImageWithMask
AddTTFFontFromFile
AddTTFFontFromFile2
AddType1FontFromFile
AutoCreateURL
AutoLaunch
BeginDoc
BinaryImage
Compression
CreateWaterMark
CurrentWaterMarkIndex
DocumentInfo_Author
DocumentInfo_CreationDate
DocumentInfo_Creator
DocumentInfo_Keywords
DocumentInfo_Producer
DocumentInfo_Subject
DocumentInfo_Title
EndDoc
FileName
FlipImage
FontEmbedStyle
GenerateInMemoryFile
GetCurrentPageIndex
GetImageCount
GetImageHeight
GetImageResolution
GetImageWidth
GetUsedDC
GetUsedDCResolution
GlyphsToUnicodeStr
HDC
InitialZoom
InitialZoom2
JPEGQuality
LastError
LoadICCProfile
LogActionsAndErrors
LogTextOperation
MakeImageGrayScale
MakeImageNegative
MemoryFileSize
MetafileImagesCompressionType
MetafileImagesJpegCompression
NewPage
NonEmbeddedFonts
NonEmbeddedFonts_Add
NotEmbedAnyFonts
OnePass
OutputByteStream
OwnerPassword
PageCount
PageHeight
PageLayout
PageMode
PageNumber
PageWidth
PlaceImageToCurrentPage
PlayEMF
PrinterForVirtualDC
Printing
ProducePDFA
ProtectionEnabled
ProtectionKeyLength
ProtectionOptions_coAssembly
ProtectionOptions_coCopyInformation
ProtectionOptions_coExtractInfo
ProtectionOptions_coFillAnnotation
ProtectionOptions_coModifyAnnotation
ProtectionOptions_coModifyStructure
ProtectionOptions_coPrint
ProtectionOptions_coPrintHigh
Resolution
SetCurrentPage
SetPDFAOutputIntent
SetPDFXOutputIntent
StartEngine
SwitchedToWatermark
TransformColors
UseCurrentDocumentResolutionForNextPages
UserPassword
UseScreenDC
Version
ViewerPreferences_vpCenterWindow
ViewerPreferences_vpFitWindow
ViewerPreferences_vpHideMenuBar
ViewerPreferences_vpHideToolBar
ViewerPreferences_vpHideWindowUI
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 if it is turned off.

Remarks

If AutoCreateURL equals VARIANT_TRUE and text written to a page using PDFPage_TextOut contains anĀ "http://","mailto:" or "ftp://" prefix, then a link to a URL is automatically appended to this text.

Equivalent in new interface: IPDFDocument4::AutoCreateURL.

Example

How to Insert Text and a URL into a PDF Document

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.StartEngine('demo', 'demo');
PDF.AutoLaunch := true; 
PDF.FileName := 'empty.pdf';
PDF.BeginDoc;
PDF.AutoCreateURL := false;
PDF.PDFPAGE_TextOut(10, 10, 0, 'As text: http://www.colorpilot.com');
PDF.AutoCreateURL :=true;
PDF.PDFPAGE_TextOut(10, 40, 0, 'As URL: http://www.colorpilot.com/contact.html');
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->StartEngine("demo", "demo");
PDF->AutoLaunch = TRUE; 
PDF->FileName = "empty.pdf";
PDF->BeginDoc();
PDF->AutoCreateURL = FALSE;
PDF->PDFPAGE_TextOut(10, 10, 0, "As text: http://www.colorpilot.com");
PDF->AutoCreateURL = TRUE;
PDF->PDFPAGE_TextOut(10, 40, 0, "As URL: http://www.colorpilot.com/contact.html");
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.StartEngine("demo", "demo");
PDF.AutoLaunch = true; 
PDF.FileName = "empty.pdf";
PDF.BeginDoc();
PDF.AutoCreateURL = false;
PDF.PDFPAGE_TextOut(10, 10, 0 ,"As text: http://www.colorpilot.com");
PDF.AutoCreateURL = true;
PDF.PDFPAGE_TextOut(10, 40, 0, "As URL: http://www.colorpilot.com/contact.html");
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.StartEngine "demo@demo", "demo"
PDF.AutoLaunch = True
PDF.FileName = "empty.pdf"
PDF.BeginDoc
PDF.AutoCreateURL = False
PDF.PDFPAGE_TextOut 10, 10, 0, "As text: http://www.colorpilot.com"
PDF.AutoCreateURL = True
PDF.PDFPAGE_TextOut 10, 40, 0, "As URL: http://www.colorpilot.com/contact.html"
PDF.EndDoc

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