![Pdftools logo](../icons/pdftools-icon.png) | IccBasedColorSpaceCopy Method |
Copy an ICC-based color space
Copy an ICC-based color space object from an input document to the given
targetDocument.
The returned object is associated with the given target document but not yet part of it.
Namespace: PdfTools.Toolbox.Pdf.ContentAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.1.0+5820e9ca9ca173983539ffc40abc227fb62e6928
Syntaxpublic static IccBasedColorSpace Copy(
Document targetDocument,
IccBasedColorSpace colorSpace
)
Parameters
- targetDocument Document
-
the output document with which the returned object is associated
- colorSpace IccBasedColorSpace
-
an ICC-based color space of a different document
Return Value
IccBasedColorSpace
the copied color space, associated with the current document.
ExceptionsException | Condition |
---|
IOException | Error reading from the source document or writing to the target document |
CorruptException | The source document is corrupt |
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 colorSpace object is not associated with an input document |
ArgumentException | if the document associated with colorSpace has already been closed |
ArgumentNullException | if targetDocument is . |
ArgumentNullException | if colorSpace is . |
See Also