Uses of Class
org.apache.pdfbox.cos.COSObject
Packages that use COSObject
Package
Description
These are the low level objects that make up a PDF document.
The pdfparser package contains classes to parse PDF documents and objects within the document.
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.
-
Uses of COSObject in org.apache.pdfbox.cos
Fields in org.apache.pdfbox.cos with type parameters of type COSObjectModifier and TypeFieldDescriptionprivate final Map<COSObjectKey,
COSObject> COSDocument.objectPool
Maps ObjectKeys to a COSObject.Methods in org.apache.pdfbox.cos that return COSObjectModifier and TypeMethodDescriptionCOSDocument.getCatalog()
Deprecated.COSDictionary.getCOSObject
(COSName key) This is a convenience method that will get the dictionary object that is expected to be a COSObject.COSDocument.getObjectByType
(COSName type) This will get the first dictionary object by type.COSDocument.getObjectFromPool
(COSObjectKey key) This will get an object from the pool.COSDocument.removeObject
(COSObjectKey key) Removes an object from the object pool.Methods in org.apache.pdfbox.cos that return types with arguments of type COSObjectModifier and TypeMethodDescriptionCOSDocument.getObjects()
This will get a list of all available objects.COSDocument.getObjectsByType
(String type) This will get all dictionary objects by type.COSDocument.getObjectsByType
(COSName type) This will get a dictionary object by type.Constructors in org.apache.pdfbox.cos with parameters of type COSObject -
Uses of COSObject in org.apache.pdfbox.pdfparser
Fields in org.apache.pdfbox.pdfparser with type parameters of type COSObjectMethods in org.apache.pdfbox.pdfparser that return COSObjectModifier and TypeMethodDescriptionprivate COSObject
COSParser.compareCOSObjects
(COSObject newObject, Long newOffset, COSObject currentObject, Long currentOffset) PDFXRef.getObject
(int objectNumber) Returns the object referenced by the given object number.PDFXRefStream.getObject
(int objectNumber) Returns the object referenced by the given object number.Methods in org.apache.pdfbox.pdfparser that return types with arguments of type COSObjectModifier and TypeMethodDescriptionPDFObjectStreamParser.getObjects()
This will get the objects that were parsed from the stream.Methods in org.apache.pdfbox.pdfparser with parameters of type COSObjectModifier and TypeMethodDescriptionprivate COSObject
COSParser.compareCOSObjects
(COSObject newObject, Long newOffset, COSObject currentObject, Long currentOffset) private long
COSParser.getObjectId
(COSObject obj) Creates a unique object id using object number and object generation number.private void
COSParser.parseDictionaryRecursive
(COSObject dictionaryObject) Resolves all not already parsed objects of a dictionary recursively.private void
COSParser.parseFileObject
(Long offsetOrObjstmObNr, COSObjectKey objKey, COSObject pdfObject) protected final COSBase
COSParser.parseObjectDynamically
(COSObject obj, boolean requireExistingNotCompressedObj) This will parse the next object from the stream and add it to the local state.private COSDictionary
COSParser.retrieveCOSDictionary
(COSObject object) Method parameters in org.apache.pdfbox.pdfparser with type arguments of type COSObjectModifier and TypeMethodDescriptionprivate int
COSParser.checkPagesDictionary
(COSDictionary pagesDict, Set<COSObject> set) -
Uses of COSObject in org.apache.pdfbox.pdmodel
Fields in org.apache.pdfbox.pdmodel with type parameters of type COSObjectModifier and TypeFieldDescriptionprivate final Map<COSObject,
SoftReference<PDColorSpace>> DefaultResourceCache.colorSpaces
private final Map<COSObject,
SoftReference<PDExtendedGraphicsState>> DefaultResourceCache.extGStates
private final Map<COSObject,
SoftReference<PDFont>> DefaultResourceCache.fonts
private final Map<COSObject,
SoftReference<PDAbstractPattern>> DefaultResourceCache.patterns
private final Map<COSObject,
SoftReference<PDPropertyList>> DefaultResourceCache.properties
private final Map<COSObject,
SoftReference<PDShading>> DefaultResourceCache.shadings
private final Map<COSObject,
SoftReference<PDXObject>> DefaultResourceCache.xobjects
Methods in org.apache.pdfbox.pdmodel that return COSObjectModifier and TypeMethodDescriptionprivate COSObject
PDResources.getIndirect
(COSName kind, COSName name) Returns the resource with the given name and kind as an indirect object, or null.Methods in org.apache.pdfbox.pdmodel with parameters of type COSObjectModifier and TypeMethodDescriptionDefaultResourceCache.getColorSpace
(COSObject indirect) ResourceCache.getColorSpace
(COSObject indirect) Returns the color space resource for the given indirect object, if it is in the cache.DefaultResourceCache.getExtGState
(COSObject indirect) ResourceCache.getExtGState
(COSObject indirect) Returns the extended graphics state resource for the given indirect object, if it is in the cache.Returns the font resource for the given indirect object, if it is in the cache.DefaultResourceCache.getPattern
(COSObject indirect) ResourceCache.getPattern
(COSObject indirect) Returns the pattern resource for the given indirect object, if it is in the cache.DefaultResourceCache.getProperties
(COSObject indirect) ResourceCache.getProperties
(COSObject indirect) Returns the property list resource for the given indirect object, if it is in the cache.DefaultResourceCache.getShading
(COSObject indirect) ResourceCache.getShading
(COSObject indirect) Returns the shading resource for the given indirect object, if it is in the cache.DefaultResourceCache.getXObject
(COSObject indirect) ResourceCache.getXObject
(COSObject indirect) Returns the XObject resource for the given indirect object, if it is in the cache.void
DefaultResourceCache.put
(COSObject indirect, PDPropertyList propertyList) void
void
DefaultResourceCache.put
(COSObject indirect, PDColorSpace colorSpace) void
DefaultResourceCache.put
(COSObject indirect, PDAbstractPattern pattern) void
void
void
DefaultResourceCache.put
(COSObject indirect, PDExtendedGraphicsState extGState) void
ResourceCache.put
(COSObject indirect, PDPropertyList propertyList) Puts the given indirect property list resource in the cache.void
Puts the given indirect font resource in the cache.void
ResourceCache.put
(COSObject indirect, PDColorSpace colorSpace) Puts the given indirect color space resource in the cache.void
ResourceCache.put
(COSObject indirect, PDAbstractPattern pattern) Puts the given indirect pattern resource in the cache.void
Puts the given indirect XObject resource in the cache.void
Puts the given indirect shading resource in the cache.void
ResourceCache.put
(COSObject indirect, PDExtendedGraphicsState extGState) Puts the given indirect extended graphics state resource in the cache. -
Uses of COSObject in org.apache.pdfbox.pdmodel.graphics.color
Methods in org.apache.pdfbox.pdmodel.graphics.color with parameters of type COSObjectModifier and TypeMethodDescriptionprivate static PDColorSpace
PDColorSpace.createFromCOSObject
(COSObject colorSpace, PDResources resources) -
Uses of COSObject in org.apache.pdfbox.preflight.process
Methods in org.apache.pdfbox.preflight.process that return COSObjectModifier and TypeMethodDescriptionprivate COSObject
BookmarkValidationProcess.toCOSObject
(COSBase base) Returns a COSBase as a COSObject or null if null or COSNull.Methods in org.apache.pdfbox.preflight.process with parameters of type COSObjectModifier and TypeMethodDescriptionprivate void
StreamValidationProcess.addStreamLengthValidationError
(PreflightContext context, COSObject cObj, int length, String endStream) protected void
StreamValidationProcess.checkStreamLength
(PreflightContext context, COSObject cObj) protected boolean
BookmarkValidationProcess.exploreOutlineLevel
(PreflightContext ctx, PDOutlineItem inputItem, COSObject firstObj, COSObject lastObj) This method explores the Outline Item Level and calls a validation method on each Outline Item.void
StreamValidationProcess.validateStreamObject
(PreflightContext context, COSObject cObj) -
Uses of COSObject in org.apache.pdfbox.preflight.utils
Methods in org.apache.pdfbox.preflight.utils with parameters of type COSObjectModifier and TypeMethodDescriptionprivate static COSBase
COSUtils.getCOSObjectAsClass
(COSObject cosObject, COSDocument cDoc, Class claz) Return the COSObject object as class if the COSObject object is a reference to an object of that class.
PDDocument.getDocumentCatalog()
instead.