![Pdftools logo](../icons/pdftools-icon.png) | LinkCopy Method |
Copy a link from an input document to a output document.
Namespace: PdfTools.FourHeights.PdfToolbox.Pdf.NavigationAssembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.1+cd45f416896d630bcd3719f4b2cba7920f2790da
Syntaxpublic 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
ExceptionsException | Condition |
---|
ArgumentException | if the targetDocument has already been closed |
ArgumentException | if the targetDocument is read-only |
ArgumentException | if the link is not associated with an input document |
ArgumentException | if the document associated with the link object has already been closed |
ConformanceException | The conformance level of the input document is not compatible
with the conformance level of the targetDocument. |
IOException | Error reading from the input document or writing to the output document |
ArgumentNullException | if targetDocument is . |
ArgumentNullException | if link is . |
See Also