Uses of Class
org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace
Packages that use PDColorSpace
Package
Description
This package contains provides classes for working with content streams.
The PDModel package represents a high level API for creating and manipulating PDF documents.
This package deals with colors that are stored in a PDF document.
This package deals with Form XObjects that are stored in a PDF document.
This package deals with images that are stored in a PDF document.
This package deals with shadings which are used for filling instead of a color.
This package deals with graphics states within the PDF document.
-
Uses of PDColorSpace in org.apache.pdfbox.contentstream
Methods in org.apache.pdfbox.contentstream with parameters of type PDColorSpaceModifier and TypeMethodDescriptionprotected final void
PDFStreamEngine.processTilingPattern
(PDTilingPattern tilingPattern, PDColor color, PDColorSpace colorSpace) Process the given tiling pattern.protected final void
PDFStreamEngine.processTilingPattern
(PDTilingPattern tilingPattern, PDColor color, PDColorSpace colorSpace, Matrix patternMatrix) Process the given tiling pattern. -
Uses of PDColorSpace in org.apache.pdfbox.contentstream.operator.color
Methods in org.apache.pdfbox.contentstream.operator.color that return PDColorSpaceModifier and TypeMethodDescriptionprotected abstract PDColorSpace
SetColor.getColorSpace()
Returns either the stroking or non-stroking color space.protected PDColorSpace
SetNonStrokingColor.getColorSpace()
Returns the non-stroking color space.protected PDColorSpace
SetStrokingColor.getColorSpace()
Returns the stroking color space. -
Uses of PDColorSpace in org.apache.pdfbox.debugger.colorpane
Fields in org.apache.pdfbox.debugger.colorpane declared as PDColorSpace -
Uses of PDColorSpace in org.apache.pdfbox.pdmodel
Fields in org.apache.pdfbox.pdmodel with type parameters of type PDColorSpaceModifier and TypeFieldDescriptionprivate final Map<COSObject,
SoftReference<PDColorSpace>> DefaultResourceCache.colorSpaces
protected final Deque<PDColorSpace>
PDAbstractContentStream.nonStrokingColorSpaceStack
private final Stack<PDColorSpace>
PDPageContentStream.nonStrokingColorSpaceStack
protected final Deque<PDColorSpace>
PDAbstractContentStream.strokingColorSpaceStack
private final Stack<PDColorSpace>
PDPageContentStream.strokingColorSpaceStack
Methods in org.apache.pdfbox.pdmodel that return PDColorSpaceModifier and TypeMethodDescriptionDefaultResourceCache.getColorSpace
(COSObject indirect) PDResources.getColorSpace
(COSName name) Returns the color space resource with the given name, or null if none exists.PDResources.getColorSpace
(COSName name, boolean wasDefault) Returns the color space resource with the given name, or null if none exists.ResourceCache.getColorSpace
(COSObject indirect) Returns the color space resource for the given indirect object, if it is in the cache.Methods in org.apache.pdfbox.pdmodel with parameters of type PDColorSpaceModifier and TypeMethodDescriptionPDResources.add
(PDColorSpace colorSpace) Adds the given color space to the resources of the current page and returns the name for the new resources.protected COSName
PDAbstractContentStream.getName
(PDColorSpace colorSpace) private COSName
PDPageContentStream.getName
(PDColorSpace colorSpace) void
DefaultResourceCache.put
(COSObject indirect, PDColorSpace colorSpace) void
PDResources.put
(COSName name, PDColorSpace colorSpace) Sets the color space resource with the given name.void
ResourceCache.put
(COSObject indirect, PDColorSpace colorSpace) Puts the given indirect color space resource in the cache.void
PDPageContentStream.setNonStrokingColorSpace
(PDColorSpace colorSpace) Deprecated.protected void
PDAbstractContentStream.setNonStrokingColorSpaceStack
(PDColorSpace colorSpace) private void
PDPageContentStream.setNonStrokingColorSpaceStack
(PDColorSpace colorSpace) void
PDPageContentStream.setStrokingColorSpace
(PDColorSpace colorSpace) Deprecated.protected void
PDAbstractContentStream.setStrokingColorSpaceStack
(PDColorSpace colorSpace) private void
PDPageContentStream.setStrokingColorSpaceStack
(PDColorSpace colorSpace) -
Uses of PDColorSpace in org.apache.pdfbox.pdmodel.graphics.color
Subclasses of PDColorSpace in org.apache.pdfbox.pdmodel.graphics.colorModifier and TypeClassDescriptionfinal class
A CalGray colour space is a special case of a single-component CIE-based colour space.class
A CalRGB colour space is a CIE-based colour space with one transformation stage instead of two.class
CIE-based colour spaces specify colours in a way that is independent of the characteristics of any particular output device.class
CIE-based colour spaces that use a dictionary.class
Allows colors to be specified according to the subtractive CMYK (cyan, magenta, yellow, black) model typical of printers and other paper-based output devices.class
Device colour spaces directly specify colours or shades of gray produced by an output device.final class
A color space with black, white, and intermediate shades of gray.class
DeviceN colour spaces may contain an arbitrary number of colour components.final class
Colours in the DeviceRGB colour space are specified according to the additive RGB (red-green-blue) colour model.final class
ICCBased color spaces are based on a cross-platform color profile as defined by the International Color Consortium (ICC).final class
An Indexed colour space specifies that an area is to be painted using a colour table of arbitrary colours from another color space.final class
A color space embedded in a JPX file.final class
A Lab colour space is a CIE-based ABC colour space with two transformation stages.final class
A Pattern color space is either a Tiling pattern or a Shading pattern.class
A Separation color space used to specify either additional colorants or for isolating the control of individual colour components of a device colour space for a subtractive device.class
Special colour spaces add features or properties to an underlying colour space.Fields in org.apache.pdfbox.pdmodel.graphics.color declared as PDColorSpaceModifier and TypeFieldDescriptionprivate PDColorSpace
PDDeviceN.alternateColorSpace
private PDColorSpace
PDICCBased.alternateColorSpace
private PDColorSpace
PDSeparation.alternateColorSpace
private PDColorSpace
PDIndexed.baseColorSpace
private final PDColorSpace
PDColor.colorSpace
private PDColorSpace
PDDeviceN.processColorSpace
private PDColorSpace
PDPattern.underlyingColorSpace
Methods in org.apache.pdfbox.pdmodel.graphics.color that return PDColorSpaceModifier and TypeMethodDescriptionstatic PDColorSpace
Creates a color space given a name or array.static PDColorSpace
PDColorSpace.create
(COSBase colorSpace, PDResources resources) Creates a color space given a name or array.static PDColorSpace
PDColorSpace.create
(COSBase colorSpace, PDResources resources, boolean wasDefault) Creates a color space given a name or array.private static PDColorSpace
PDColorSpace.createFromCOSObject
(COSObject colorSpace, PDResources resources) PDDeviceN.getAlternateColorSpace()
This will get the alternate color space for this separation.PDICCBased.getAlternateColorSpace()
Returns a list of alternate color spaces for non-conforming readers.PDSeparation.getAlternateColorSpace()
Returns the colorant name.PDIndexed.getBaseColorSpace()
Returns the base color space.PDColor.getColorSpace()
Returns the color space in which this color value is defined.PDDeviceNProcess.getColorSpace()
Returns the process color spacePDPattern.getUnderlyingColorSpace()
Returns the underlying color space, if this is an uncolored tiling pattern, otherwise null.Methods in org.apache.pdfbox.pdmodel.graphics.color with parameters of type PDColorSpaceModifier and TypeMethodDescriptionvoid
PDDeviceN.setAlternateColorSpace
(PDColorSpace cs) This will set the alternate color space.void
PDSeparation.setAlternateColorSpace
(PDColorSpace colorSpace) Sets the alternate color space.void
PDIndexed.setBaseColorSpace
(PDColorSpace base) Sets the base color space.Method parameters in org.apache.pdfbox.pdmodel.graphics.color with type arguments of type PDColorSpaceModifier and TypeMethodDescriptionvoid
PDICCBased.setAlternateColorSpaces
(List<PDColorSpace> list) Sets the list of alternateColorSpace color spaces.void
PDDeviceNAttributes.setColorants
(Map<String, PDColorSpace> colorants) Sets the colorant map.Constructors in org.apache.pdfbox.pdmodel.graphics.color with parameters of type PDColorSpaceModifierConstructorDescriptionPDColor
(float[] components, COSName patternName, PDColorSpace colorSpace) Creates a PDColor containing the given color component values and pattern name.PDColor
(float[] components, PDColorSpace colorSpace) Creates a PDColor containing the given color component values.PDColor
(COSArray array, PDColorSpace colorSpace) Creates a PDColor containing the given color value.PDColor
(COSName patternName, PDColorSpace colorSpace) Creates a PDColor containing the given pattern name.PDPattern
(PDResources resources, PDColorSpace colorSpace) Creates a new uncolored tiling pattern color space. -
Uses of PDColorSpace in org.apache.pdfbox.pdmodel.graphics.form
Fields in org.apache.pdfbox.pdmodel.graphics.form declared as PDColorSpaceMethods in org.apache.pdfbox.pdmodel.graphics.form that return PDColorSpaceModifier and TypeMethodDescriptionPDTransparencyGroupAttributes.getColorSpace()
Returns the group color space or null if it isn't defined.PDTransparencyGroupAttributes.getColorSpace
(PDResources resources) Returns the group color space or null if it isn't defined. -
Uses of PDColorSpace in org.apache.pdfbox.pdmodel.graphics.image
Fields in org.apache.pdfbox.pdmodel.graphics.image declared as PDColorSpaceMethods in org.apache.pdfbox.pdmodel.graphics.image that return PDColorSpaceModifier and TypeMethodDescriptionprivate PDColorSpace
PDInlineImage.createColorSpace
(COSBase cs) PDImage.getColorSpace()
Returns the image's color space.PDImageXObject.getColorSpace()
PDInlineImage.getColorSpace()
private static PDColorSpace
JPEGFactory.getColorSpaceFromAWT
(BufferedImage awtImage) Methods in org.apache.pdfbox.pdmodel.graphics.image with parameters of type PDColorSpaceModifier and TypeMethodDescriptionprivate static COSDictionary
PNGConverter.buildDecodeParams
(PNGConverter.PNGConverterState state, PDColorSpace colorSpace) private static COSStream
PNGConverter.createCOSStreamwithIccProfile
(PDDocument document, PDColorSpace colorSpace, PNGConverter.PNGConverterState state) private static PDImageXObject
CCITTFactory.prepareImageXObject
(PDDocument document, byte[] byteArray, int width, int height, PDColorSpace initColorSpace) (package private) static PDImageXObject
LosslessFactory.prepareImageXObject
(PDDocument document, byte[] byteArray, int width, int height, int bitsPerComponent, PDColorSpace initColorSpace) Create a PDImageXObject using the Flate filter.void
PDImage.setColorSpace
(PDColorSpace colorSpace) Sets the color space for this image.void
PDImageXObject.setColorSpace
(PDColorSpace cs) void
PDInlineImage.setColorSpace
(PDColorSpace colorSpace) Constructors in org.apache.pdfbox.pdmodel.graphics.image with parameters of type PDColorSpaceModifierConstructorDescriptionPDImageXObject
(PDDocument document, InputStream encodedStream, COSBase cosFilter, int width, int height, int bitsPerComponent, PDColorSpace initColorSpace) Creates an Image XObject in the given document using the given filtered stream. -
Uses of PDColorSpace in org.apache.pdfbox.pdmodel.graphics.shading
Fields in org.apache.pdfbox.pdmodel.graphics.shading declared as PDColorSpaceModifier and TypeFieldDescriptionprivate PDColorSpace
PDShading.colorSpace
private PDColorSpace
ShadingContext.shadingColorSpace
Methods in org.apache.pdfbox.pdmodel.graphics.shading that return PDColorSpaceModifier and TypeMethodDescriptionPDShading.getColorSpace()
This will get the color space or null if none exists.(package private) PDColorSpace
ShadingContext.getShadingColorSpace()
Methods in org.apache.pdfbox.pdmodel.graphics.shading with parameters of type PDColorSpaceModifier and TypeMethodDescriptionvoid
PDShading.setColorSpace
(PDColorSpace colorSpace) This will set the color space for the shading. -
Uses of PDColorSpace in org.apache.pdfbox.pdmodel.graphics.state
Fields in org.apache.pdfbox.pdmodel.graphics.state declared as PDColorSpaceModifier and TypeFieldDescriptionprivate PDColorSpace
PDGraphicsState.nonStrokingColorSpace
private PDColorSpace
PDGraphicsState.strokingColorSpace
Methods in org.apache.pdfbox.pdmodel.graphics.state that return PDColorSpaceModifier and TypeMethodDescriptionPDGraphicsState.getNonStrokingColorSpace()
Returns the non-stroking color space.PDGraphicsState.getStrokingColorSpace()
Returns the stroking color space.Methods in org.apache.pdfbox.pdmodel.graphics.state with parameters of type PDColorSpaceModifier and TypeMethodDescriptionvoid
PDGraphicsState.setNonStrokingColorSpace
(PDColorSpace colorSpace) Sets the non-stroking color space.void
PDGraphicsState.setStrokingColorSpace
(PDColorSpace colorSpace) Sets the stroking color space. -
Uses of PDColorSpace in org.apache.pdfbox.preflight.content
Methods in org.apache.pdfbox.preflight.content that return PDColorSpaceModifier and TypeMethodDescriptionprivate PDColorSpace
PreflightStreamEngine.getColorSpace
(String operation) Methods in org.apache.pdfbox.preflight.content with parameters of type PDColorSpaceModifier and TypeMethodDescriptionprivate ColorSpaceHelper
PreflightStreamEngine.getColorSpaceHelper
(PDColorSpace pdCS) private boolean
PreflightStreamEngine.isDeviceIndependent
(PDColorSpace cs, PreflightStreamEngine.ColorSpaceType expectedIccType) private boolean
PreflightStreamEngine.validColorSpace
(PDColorSpace colorSpace, PreflightStreamEngine.ColorSpaceType expectedIccType) -
Uses of PDColorSpace in org.apache.pdfbox.preflight.graphic
Fields in org.apache.pdfbox.preflight.graphic declared as PDColorSpaceModifier and TypeFieldDescriptionprotected PDColorSpace
StandardColorSpaceHelper.pdcs
High level object which represents the colors space to check.Methods in org.apache.pdfbox.preflight.graphic with parameters of type PDColorSpaceModifier and TypeMethodDescriptionColorSpaceHelperFactory.getColorSpaceHelper
(PreflightContext context, PDColorSpace cs, ColorSpaceHelperFactory.ColorSpaceRestriction csr) Return an instance of ColorSpaceHelper according to the ColorSpaceRestriction value.protected final void
StandardColorSpaceHelper.processAllColorSpace
(PDColorSpace colorSpace) Method called by the validate method.protected void
StandardColorSpaceHelper.processCalibratedColorSpace
(PDColorSpace colorSpace) Method called by the processAllColorSpace if the ColorSpace to check is a calibrated color (CalGray, CalRGB, Lab).protected void
StandardColorSpaceHelper.processCYMKColorSpace
(PDColorSpace colorSpace) Method called by the processAllColorSpace if the ColorSpace to check is DeviceCYMK.protected boolean
StandardColorSpaceHelper.processDefaultColorSpace
(PDColorSpace colorSpace) Look up in the closest PDResources objects if there are a default ColorSpace.protected void
DeviceColorSpaceHelper.processDeviceNColorSpace
(PDColorSpace colorSpace) This method updates the given list with a ValidationError (ERROR_GRAPHIC_INVALID_PATTERN_COLOR_SPACE_FORBIDDEN) and returns false.protected void
StandardColorSpaceHelper.processDeviceNColorSpace
(PDColorSpace colorSpace) Method called by the processAllColorSpace if the ColorSpace to check is DeviceN.protected void
StandardColorSpaceHelper.processGrayColorSpace
(PDColorSpace colorSpace) Method called by the processAllColorSpace if the ColorSpace to check is DeviceGray.protected void
StandardColorSpaceHelper.processICCBasedColorSpace
(PDColorSpace colorSpace) Method called by the processAllColorSpace if the ColorSpace to check is a ICCBased color space.protected void
DeviceColorSpaceHelper.processIndexedColorSpace
(PDColorSpace colorSpace) Indexed color space is authorized only if the BaseColorSpace is a DeviceXXX color space.protected void
StandardColorSpaceHelper.processIndexedColorSpace
(PDColorSpace colorSpace) Method called by the processAllColorSpace if the ColorSpace to check is Indexed.protected void
DeviceColorSpaceHelper.processPatternColorSpace
(PDColorSpace colorSpace) This method updates the given list with a ValidationError (ERROR_GRAPHIC_INVALID_PATTERN_COLOR_SPACE_FORBIDDEN) and returns false.protected void
NoPatternColorSpaceHelper.processPatternColorSpace
(PDColorSpace colorSpace) This method updates the given list with a ValidationError (ERROR_GRAPHIC_INVALID_PATTERN_COLOR_SPACE_FORBIDDEN) and returns false.protected void
StandardColorSpaceHelper.processPatternColorSpace
(PDColorSpace colorSpace) Method called by the processAllColorSpace if the ColorSpace to check is a Pattern.protected void
StandardColorSpaceHelper.processRGBColorSpace
(PDColorSpace colorSpace) Method called by the processAllColorSpace if the ColorSpace to check is DeviceRGB.protected void
StandardColorSpaceHelper.processSeparationColorSpace
(PDColorSpace colorSpace) Method called by the processAllColorSpace if the ColorSpace to check is Separation.private void
StandardColorSpaceHelper.validateICCProfileAlternateEntry
(PDICCBased iccBased, PDColorSpace alternateColorSpace) Constructors in org.apache.pdfbox.preflight.graphic with parameters of type PDColorSpaceModifierConstructorDescriptionDeviceColorSpaceHelper
(PreflightContext _context, PDColorSpace _cs) NoPatternColorSpaceHelper
(PreflightContext _context, PDColorSpace _cs) protected
StandardColorSpaceHelper
(PreflightContext _context, PDColorSpace _cs) -
Uses of PDColorSpace in org.apache.pdfbox.rendering
Fields in org.apache.pdfbox.rendering declared as PDColorSpaceModifier and TypeFieldDescriptionprivate final PDColorSpace
TilingPaintFactory.TilingPaintParameter.colorSpace
Methods in org.apache.pdfbox.rendering with parameters of type PDColorSpaceModifier and TypeMethodDescription(package private) Paint
TilingPaintFactory.create
(PDTilingPattern pattern, PDColorSpace colorSpace, PDColor color, AffineTransform xform) (package private) void
PageDrawer.drawTilingPattern
(Graphics2D g, PDTilingPattern pattern, PDColorSpace colorSpace, PDColor color, Matrix patternMatrix) Draws the pattern stream to the requested context.private BufferedImage
TilingPaint.getImage
(PageDrawer drawer, PDTilingPattern pattern, PDColorSpace colorSpace, PDColor color, AffineTransform xform, Rectangle2D anchorRect) Returns the pattern image in parent stream coordinates.private boolean
PageDrawer.TransparencyGroup.isGray
(PDColorSpace colorSpace) Constructors in org.apache.pdfbox.rendering with parameters of type PDColorSpaceModifierConstructorDescription(package private)
TilingPaint
(PageDrawer drawer, PDTilingPattern pattern, PDColorSpace colorSpace, PDColor color, AffineTransform xform) Creates a new tiling Paint.private
TilingPaintParameter
(Matrix matrix, COSDictionary patternDict, PDColorSpace colorSpace, PDColor color, AffineTransform xform)
PDPageContentStream.setNonStrokingColor(PDColor)
instead.