Click or drag to resize
Pdftools logo

WebLinkCreate Method

Create an external link

The link is associated with the targetDocument but not yet part of any page. It can be added to a page's list of links.

Namespace: PdfTools.FourHeights.PdfToolbox.Pdf.Navigation
Assembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.1+cd45f416896d630bcd3719f4b2cba7920f2790da
Syntax
C#
public static WebLink Create(
	Document targetDocument,
	Rectangle boundingBox,
	string uri
)

Parameters

targetDocument  Document
The document in which the links is used
boundingBox  Rectangle
The location on the page.
uri  String
The link target

Return Value

WebLink
The newly created object
Exceptions
ExceptionCondition
ArgumentExceptionif the targetDocument argument has already been closed
ArgumentExceptionif the targetDocument argument is read-only
ArgumentExceptionif the uri is empty
ArgumentNullExceptionif targetDocument is .
ArgumentNullExceptionif uri is .
See Also