![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.FourHeights.PdfToolbox.Pdf.ContentAssembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.1+cd45f416896d630bcd3719f4b2cba7920f2790da
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