Package | Description |
---|---|
org.apache.pdfbox.cos |
These are the low level objects that make up a PDF document.
|
org.apache.pdfbox.pdfparser |
The pdfparser package contains classes to parse PDF documents and objects within the document.
|
org.apache.pdfbox.pdmodel |
The PDModel package represents a high level API for creating and manipulating PDF documents.
|
org.apache.pdfbox.pdmodel.graphics.color |
This package deals with colors that are stored in a PDF document.
|
org.apache.pdfbox.preflight.process | |
org.apache.pdfbox.preflight.utils |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<COSObjectKey,COSObject> |
COSDocument.objectPool
Maps ObjectKeys to a COSObject.
|
Modifier and Type | Method and Description |
---|---|
COSObject |
COSDocument.getCatalog()
Deprecated.
use
PDDocument.getDocumentCatalog() instead. |
COSObject |
COSDictionary.getCOSObject(COSName key)
This is a convenience method that will get the dictionary object that is expected to be a COSObject.
|
COSObject |
COSDocument.getObjectByType(COSName type)
This will get the first dictionary object by type.
|
COSObject |
COSDocument.getObjectFromPool(COSObjectKey key)
This will get an object from the pool.
|
COSObject |
COSDocument.removeObject(COSObjectKey key)
Removes an object from the object pool.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<COSObject> |
COSDocument.getObjects()
This will get a list of all available objects.
|
java.util.List<COSObject> |
COSDocument.getObjectsByType(COSName type)
This will get a dictionary object by type.
|
java.util.List<COSObject> |
COSDocument.getObjectsByType(java.lang.String type)
This will get all dictionary objects by type.
|
Constructor and Description |
---|
COSObjectKey(COSObject object)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<COSObject> |
PDFObjectStreamParser.streamObjects |
Modifier and Type | Method and Description |
---|---|
COSObject |
PDFXRef.getObject(int objectNumber)
Returns the object referenced by the given object number.
|
COSObject |
PDFXRefStream.getObject(int objectNumber)
Returns the object referenced by the given object number.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<COSObject> |
PDFObjectStreamParser.getObjects()
This will get the objects that were parsed from the stream.
|
Modifier and Type | Method and Description |
---|---|
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(java.lang.Long offsetOrObjstmObNr,
COSObjectKey objKey,
COSObject pdfObject) |
protected 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) |
Modifier and Type | Method and Description |
---|---|
private int |
COSParser.checkPagesDictionary(COSDictionary pagesDict,
java.util.Set<COSObject> set) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<COSObject,java.lang.ref.SoftReference<PDColorSpace>> |
DefaultResourceCache.colorSpaces |
private java.util.Map<COSObject,java.lang.ref.SoftReference<PDExtendedGraphicsState>> |
DefaultResourceCache.extGStates |
private java.util.Map<COSObject,java.lang.ref.SoftReference<PDFont>> |
DefaultResourceCache.fonts |
private java.util.Map<COSObject,java.lang.ref.SoftReference<PDAbstractPattern>> |
DefaultResourceCache.patterns |
private java.util.Map<COSObject,java.lang.ref.SoftReference<PDPropertyList>> |
DefaultResourceCache.properties |
private java.util.Map<COSObject,java.lang.ref.SoftReference<PDShading>> |
DefaultResourceCache.shadings |
private java.util.Map<COSObject,java.lang.ref.SoftReference<PDXObject>> |
DefaultResourceCache.xobjects |
Modifier and Type | Method and Description |
---|---|
private COSObject |
PDResources.getIndirect(COSName kind,
COSName name)
Returns the resource with the given name and kind as an indirect object, or null.
|
Modifier and Type | Method and Description |
---|---|
PDColorSpace |
DefaultResourceCache.getColorSpace(COSObject indirect) |
PDColorSpace |
ResourceCache.getColorSpace(COSObject indirect)
Returns the color space resource for the given indirect object, if it is in the cache.
|
PDExtendedGraphicsState |
DefaultResourceCache.getExtGState(COSObject indirect) |
PDExtendedGraphicsState |
ResourceCache.getExtGState(COSObject indirect)
Returns the extended graphics state resource for the given indirect object, if it is in the cache.
|
PDFont |
DefaultResourceCache.getFont(COSObject indirect) |
PDFont |
ResourceCache.getFont(COSObject indirect)
Returns the font resource for the given indirect object, if it is in the cache.
|
PDAbstractPattern |
DefaultResourceCache.getPattern(COSObject indirect) |
PDAbstractPattern |
ResourceCache.getPattern(COSObject indirect)
Returns the pattern resource for the given indirect object, if it is in the cache.
|
PDPropertyList |
DefaultResourceCache.getProperties(COSObject indirect) |
PDPropertyList |
ResourceCache.getProperties(COSObject indirect)
Returns the property list resource for the given indirect object, if it is in the cache.
|
PDShading |
DefaultResourceCache.getShading(COSObject indirect) |
PDShading |
ResourceCache.getShading(COSObject indirect)
Returns the shading resource for the given indirect object, if it is in the cache.
|
PDXObject |
DefaultResourceCache.getXObject(COSObject indirect) |
PDXObject |
ResourceCache.getXObject(COSObject indirect)
Returns the XObject resource for the given indirect object, if it is in the cache.
|
void |
DefaultResourceCache.put(COSObject indirect,
PDAbstractPattern pattern) |
void |
ResourceCache.put(COSObject indirect,
PDAbstractPattern pattern)
Puts the given indirect pattern resource in the cache.
|
void |
DefaultResourceCache.put(COSObject indirect,
PDColorSpace colorSpace) |
void |
ResourceCache.put(COSObject indirect,
PDColorSpace colorSpace)
Puts the given indirect color space resource in the cache.
|
void |
DefaultResourceCache.put(COSObject indirect,
PDExtendedGraphicsState extGState) |
void |
ResourceCache.put(COSObject indirect,
PDExtendedGraphicsState extGState)
Puts the given indirect extended graphics state resource in the cache.
|
void |
DefaultResourceCache.put(COSObject indirect,
PDFont font) |
void |
ResourceCache.put(COSObject indirect,
PDFont font)
Puts the given indirect font resource in the cache.
|
void |
DefaultResourceCache.put(COSObject indirect,
PDPropertyList propertyList) |
void |
ResourceCache.put(COSObject indirect,
PDPropertyList propertyList)
Puts the given indirect property list resource in the cache.
|
void |
DefaultResourceCache.put(COSObject indirect,
PDShading shading) |
void |
ResourceCache.put(COSObject indirect,
PDShading shading)
Puts the given indirect shading resource in the cache.
|
void |
DefaultResourceCache.put(COSObject indirect,
PDXObject xobject) |
void |
ResourceCache.put(COSObject indirect,
PDXObject xobject)
Puts the given indirect XObject resource in the cache.
|
Modifier and Type | Method and Description |
---|---|
private static PDColorSpace |
PDColorSpace.createFromCOSObject(COSObject colorSpace,
PDResources resources) |
Modifier and Type | Method and Description |
---|---|
private COSObject |
BookmarkValidationProcess.toCOSObject(COSBase base)
Returns a COSBase as a COSObject or null if null or COSNull.
|
Modifier and Type | Method and Description |
---|---|
private void |
StreamValidationProcess.addStreamLengthValidationError(PreflightContext context,
COSObject cObj,
int length,
java.lang.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) |
Modifier and Type | Method and Description |
---|---|
private static COSBase |
COSUtils.getCOSObjectAsClass(COSObject cosObject,
COSDocument cDoc,
java.lang.Class claz)
Return the COSObject object as class if the COSObject object is a reference to an object of
that class.
|