Click or drag to resize
Pdftools logo

EmbeddedPdfLinkCreateFromQuadrilaterals Method

Create a link to an embedded PDF document with defined link area

The link has an active area defined by the given activeArea. 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 EmbeddedPdfLink CreateFromQuadrilaterals(
	Document targetDocument,
	QuadrilateralList activeArea,
	FileReference fileReference
)

Parameters

targetDocument  Document
The document in which the links is used
activeArea  QuadrilateralList
The active link area on the page.
fileReference  FileReference
The embedded PDF file

Return Value

EmbeddedPdfLink
The newly created object
Exceptions
ExceptionCondition
ArgumentExceptionif the targetDocument has already been closed
ArgumentExceptionif the targetDocument is read-only
ArgumentExceptionif the document associated with the fileReference argument has already been closed
ArgumentExceptionif the fileReference argument does not contain a PDF document
ArgumentExceptionif the fileReference argument is neither used in a file attachment annotation nor has it been appended to the targetDocument's list of plain embedded or associated files.
ArgumentExceptionif the fileReference argument is used in a file attachment annotation and this annotation has not been appended to a page's list of annotations.
ArgumentExceptionif the activeArea is empty
ArgumentNullExceptionif targetDocument is .
ArgumentNullExceptionif activeArea is .
ArgumentNullExceptionif fileReference is .
See Also