org.apache.fop.pdf
Class PDFICCBasedColorSpace
- PDFColorSpace, PDFWritable
public class PDFICCBasedColorSpace
Represents an ICCBased color space in PDF.
encode , encodeBinaryToHexString , encodeString , encodeText , formatDateTime , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , getParent , hasObjectNumber , makeReference , output , outputInline , referencePDF , setDocument , setObjectNumber , setParent , toPDF , toPDFString |
PDFICCBasedColorSpace
public PDFICCBasedColorSpace(String explicitName,
PDFICCStream iccStream)
Constructs a the ICCBased color space with an explicit name (ex. "DefaultRGB").
explicitName
- an explicit name or null if a name should be generatediccStream
- the ICC stream to associate with this color space
PDFICCBasedColorSpace
public PDFICCBasedColorSpace(PDFICCStream iccStream)
Constructs a the ICCBased color space.
iccStream
- the ICC stream to associate with this color space
getICCStream
public PDFICCStream getICCStream()
- the ICC stream associated with this color space
setupsRGBAsDefaultRGBColorSpace
public static PDFICCBasedColorSpace setupsRGBAsDefaultRGBColorSpace(PDFDocument pdfDoc)
Sets sRGB as the DefaultRGB color space in the PDF document.
pdfDoc
- the PDF document
- the newly installed color space object
setupsRGBColorProfile
public static PDFICCStream setupsRGBColorProfile(PDFDocument pdfDoc)
Sets up the sRGB color profile in the PDF document. It does so by trying to
install a very small ICC profile (~4KB) instead of the very big one (~140KB)
the Sun JVM uses.
pdfDoc
- the PDF document
- the ICC stream with the sRGB profile
setupsRGBColorSpace
public static PDFICCBasedColorSpace setupsRGBColorSpace(PDFDocument pdfDoc)
Installs the sRGB color space in the PDF document.
pdfDoc
- the PDF document
- the newly installed color space object
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.