Description
Gets the URL address that the current object links to.
Applies to
Syntax
string GetLinkAddress()
Return value
String. Returns the URL that the current object links to.
Usage
The current object may be linked with a URL to a local file, FTP address, HTTP/HTTPS address, or an email address. Call this function to get the URL address.
Examples
The following example sets the URL link for the PDFImage object and then executes the GetLinkAddress function.
PDFdocument lpdf_doc PDFpage lpdf_page pdfimage lpdf_image lpdf_doc = create PDFdocument lpdf_page = create PDFpage lpdf_image = create pdfimage string ls_addre lpdf_image.filename = "D:\image1\1.jpg" lpdf_image.setsize( 100, 100) // setlinkaddress lpdf_image.setlinkaddress( "https://translate.google.com") //getlinkaddress ls_addre=lpdf_image.getlinkaddress( ) lpdf_page.addcontent( lpdf_image) lpdf_doc.addpage( lpdf_page) lpdf_doc.save( "D:\save\pdfimage_setlink.pdf")
See also
PDFText, PDFImage, PDFTextBlock objects:
PDFMultilineText objects: