Click or drag to resize
Pdftools logo

LinkCopy Method

Copy a link from an input document to a output document.


Namespace: PdfTools.Toolbox.Pdf.Navigation
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.4.0+02318d3e3f9645a1305b87026fb971a660079e54
Syntax
C#
public static Link Copy(
	Document targetDocument,
	Link link
)

Parameters

targetDocument  Document
the output document with which the returned object is associated
link  Link
the link to be copied to the targetDocument

Return Value

Link
the copied link, associated with the targetDocument
Exceptions
ExceptionCondition
ArgumentExceptionif the targetDocument has already been closed
ArgumentExceptionif the targetDocument is read-only
ArgumentExceptionif the link is not associated with an input document
ArgumentExceptionif the document associated with the link object has already been closed
ConformanceExceptionThe conformance level of the input document is not compatible with the conformance level of the targetDocument.
IOExceptionError reading from the input document or writing to the output document
ArgumentNullExceptionif targetDocument is .
ArgumentNullExceptionif link is .
See Also