| ViewerSettingsCopy Method |
Copy viewer settings
The newly created viewer settings are associated with the target document,
but not yet used as the document's viewer settings.
Namespace: PdfTools.FourHeights.PdfToolbox.Pdf.NavigationAssembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.6+c8104d9b5f50644b2c93d424e62edbf40828fde7
Syntax public static ViewerSettings Copy(
Document targetDocument,
ViewerSettings viewerSettings
)
Parameters
- targetDocument Document
-
the output document with which the returned object is associated
- viewerSettings ViewerSettings
-
the viewer settings of a different document
Return Value
ViewerSettings
a viewer settings object with the same content, but associated with the current document.
Exceptions Exception | Condition |
---|
ConformanceException | The conformance level of the source document is not compatible
with the conformance level of the target document. |
ArgumentException | if the targetDocument argument has already been closed |
ArgumentException | if the targetDocument argument is read-only |
ArgumentException | if the viewerSettings argument is not associated with an input document |
ArgumentException | if the document associated with the viewerSettings object has already been closed |
IOException | Error reading from the stream |
ArgumentNullException | if targetDocument is . |
ArgumentNullException | if viewerSettings is . |
See Also