| 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.Toolbox.Pdf.NavigationAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.1.0+5820e9ca9ca173983539ffc40abc227fb62e6928
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