Click or drag to resize
Pdftools logo

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.Content
Assembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 1.0.0
Syntax
C#
public 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.
Exceptions
ExceptionCondition
IOExceptionError reading from the source document or writing to the target document
CorruptExceptionThe source document is corrupt
ConformanceExceptionThe conformance level of the source document is not compatible with the conformance level of the target document.
ArgumentExceptionif the targetDocument argument has already been closed
ArgumentExceptionif the targetDocument argument is read-only
ArgumentExceptionif the colorSpace object is not associated with an input document
ArgumentExceptionif the document associated with colorSpace has already been closed
ArgumentNullExceptionif targetDocument is .
ArgumentNullExceptionif colorSpace is .
See Also