Uses of Class
com.sun.pdfview.PDFObject
-
Packages that use PDFObject Package Description com.sun.pdfview com.sun.pdfview.action com.sun.pdfview.colorspace com.sun.pdfview.decode com.sun.pdfview.decrypt com.sun.pdfview.font com.sun.pdfview.function com.sun.pdfview.pattern -
-
Uses of PDFObject in com.sun.pdfview
Fields in com.sun.pdfview declared as PDFObject Modifier and Type Field Description (package private) PDFObject
PDFFile. encrypt
the Encrypt PDFObject, from the trailerprivate PDFObject
PDFImage. imageObj
the actual image data(package private) PDFObject
PDFFile. info
The Info PDFPbject, from the trailer, for simple metadatastatic PDFObject
PDFObject. nullObj
the NULL PDFObjectprivate PDFObject
PDFDestination. pageObj
the page we refer toprivate PDFObject
NameTree. root
the root object(package private) PDFObject
PDFFile. root
the root PDFObject, as specified in the PDF fileFields in com.sun.pdfview with type parameters of type PDFObject Modifier and Type Field Description private java.lang.ref.SoftReference<PDFObject>
PDFXref. reference
(package private) java.util.HashMap<java.lang.String,PDFObject>
PDFParser. resources
Methods in com.sun.pdfview that return PDFObject Modifier and Type Method Description PDFObject
PDFFile. dereference(PDFXref ref, PDFDecrypter decrypter)
Used internally to track down PDFObject references.PDFObject
PDFObject. dereference()
Make sure that this object is dereferenced.private PDFObject
NameTree. find(PDFObject root, java.lang.String key)
Recursively walk the name tree looking for a given valuePDFObject
NameTree. find(java.lang.String key)
Find the PDF object corresponding to the given String in a name treeprivate PDFObject
NameTree. findInArray(PDFObject[] array, java.lang.String key)
Find an object in a (key,value) array.private PDFObject
PDFFile. findPage(PDFObject pagedict, int start, int getPage, java.util.Map<java.lang.String,PDFObject> resources)
Get the PDFObject representing the content of a particular page.private PDFObject
PDFParser. findResource(java.lang.String name, java.lang.String inDict)
get a property from a named dictionary in the resources of this content stream.PDFObject[]
PDFObject. getArray()
get the value as a PDFObject[].PDFObject
PDFObject. getAt(int idx)
if this object is an ARRAY, get the PDFObject at some position in the array.private static PDFObject
PDFDestination. getDestFromName(PDFObject name, PDFObject root)
Get a destination, given a name.private static PDFObject
PDFDestination. getDestFromString(PDFObject str, PDFObject root)
Get a destination, given a string.PDFObject
PDFObject. getDictRef(java.lang.String key)
get the value associated with a particular key in the dictionary.private PDFObject
PDFFile. getInheritedValue(PDFObject pageObj, java.lang.String propName)
Find a property value in a page that may be inherited.PDFObject
PDFXref. getObject()
Get the object this reference refers to, or null if it hasn't been set.PDFObject
PDFDestination. getPage()
Get the PDF Page object associated with this destinationPDFObject
PDFFile. getRoot()
get the root PDFObject of this PDFFile.private PDFObject
PDFParser. popObject()
pop a PDFObject off the stack.private PDFObject
PDFFile. readArray(int objNum, int objGen, PDFDecrypter decrypter)
read an [ array ].private PDFObject
PDFFile. readDictionary(int objNum, int objGen, PDFDecrypter decrypter)
read an entire << dictionary >>.private PDFObject
PDFFile. readHexString(int objNum, int objGen, PDFDecrypter decrypter)
read a < hex string >.private PDFObject
PDFFile. readKeyword(char start)
read a bare keyword.private PDFObject
PDFFile. readLiteralString(int objNum, int objGen, PDFDecrypter decrypter)
read a ( character string ).private PDFObject
PDFFile. readName()
read a /name.private PDFObject
PDFFile. readNumber(char start)
read a number.private PDFObject
PDFFile. readObject(int objNum, int objGen, boolean numscan, PDFDecrypter decrypter)
read the next object with a special catch for numbersprivate PDFObject
PDFFile. readObject(int objNum, int objGen, PDFDecrypter decrypter)
read the next object from the fileprivate PDFObject
PDFFile. readObjectDescription(int objNum, int objGen, PDFDecrypter decrypter)
read an entire PDFObject.Methods in com.sun.pdfview that return types with arguments of type PDFObject Modifier and Type Method Description java.util.HashMap<java.lang.String,PDFObject>
PDFObject. getDictionary()
get the dictionary as a HashMap.Methods in com.sun.pdfview with parameters of type PDFObject Modifier and Type Method Description static PDFImage
PDFImage. createImage(PDFObject obj, java.util.Map resources)
Read a PDFImage from an image dictionary and streamprivate PDFPage
PDFFile. createPage(int pagenum, PDFObject pageObj)
Create a PDF Page object by finding the relevant inherited propertiesprivate void
PDFParser. doForm(PDFObject obj)
Inject a stream of PDF commands onto the page.private void
PDFParser. doImage(PDFObject obj)
Parse image data into a Java BufferedImage and add the image command to the page.private void
PDFParser. doShader(PDFObject shaderObj)
build a shader from a dictionary.private void
PDFParser. doXObject(PDFObject obj)
Insert a PDF object into the command stream.static void
PDFImage. dump(PDFObject obj)
private PDFObject
NameTree. find(PDFObject root, java.lang.String key)
Recursively walk the name tree looking for a given valueprivate PDFObject
NameTree. findInArray(PDFObject[] array, java.lang.String key)
Find an object in a (key,value) array.private PDFObject
PDFFile. findPage(PDFObject pagedict, int start, int getPage, java.util.Map<java.lang.String,PDFObject> resources)
Get the PDFObject representing the content of a particular page.private byte[]
PDFFile. getContents(PDFObject pageObj)
get the stream representing the content of a particular page.private static PDFObject
PDFDestination. getDestFromName(PDFObject name, PDFObject root)
Get a destination, given a name.private static PDFObject
PDFDestination. getDestFromString(PDFObject str, PDFObject root)
Get a destination, given a string.static PDFDestination
PDFDestination. getDestination(PDFObject obj, PDFObject root)
Get a destination from either an array (explicit destination), a name (named destination) or a string (name tree destination).private PDFObject
PDFFile. getInheritedValue(PDFObject pageObj, java.lang.String propName)
Find a property value in a page that may be inherited.int
PDFFile. getPageNumber(PDFObject page)
Gets the page number (starting from 1) of the page represented by a particular PDFObject.private PDFColorSpace
PDFParser. parseColorSpace(PDFObject csobj)
generate a PDFColorSpace description based on a PDFObject.java.awt.geom.Rectangle2D.Float
PDFFile. parseRect(PDFObject obj)
get a Rectangle2D.Float representation for a PDFObject that is an array of four Numbers.private java.nio.ByteBuffer
PDFFile. readStream(PDFObject dict)
read the stream portion of a PDFObject.private void
PDFImage. setColorKeyMask(PDFObject maskArrayObject)
set the color key mask.void
PDFXref. setObject(PDFObject obj)
Set the object this reference refers to.Method parameters in com.sun.pdfview with type arguments of type PDFObject Modifier and Type Method Description private PDFObject
PDFFile. findPage(PDFObject pagedict, int start, int getPage, java.util.Map<java.lang.String,PDFObject> resources)
Get the PDFObject representing the content of a particular page.Constructors in com.sun.pdfview with parameters of type PDFObject Constructor Description NameTree(PDFObject root)
Creates a new instance of NameTreePDFDestination(PDFObject pageObj, int type)
Creates a new instance of PDFDestinationPDFImage(PDFObject imageObj)
Create an instance of a PDFImageConstructor parameters in com.sun.pdfview with type arguments of type PDFObject Constructor Description PDFParser(PDFPage cmds, byte[] stream, java.util.HashMap<java.lang.String,PDFObject> resources)
Don't call this constructor directly. -
Uses of PDFObject in com.sun.pdfview.action
Fields in com.sun.pdfview.action declared as PDFObject Modifier and Type Field Description private PDFObject
PDFAction. next
the next action or array of actionsMethods in com.sun.pdfview.action that return PDFObject Modifier and Type Method Description PDFObject
PDFAction. getNext()
Get the next action or array of actionsMethods in com.sun.pdfview.action with parameters of type PDFObject Modifier and Type Method Description static PDFAction
PDFAction. getAction(PDFObject obj, PDFObject root)
Get an action of the appropriate type from a PDFObjectvoid
PDFAction. setNext(PDFObject next)
Set the next action or array of actionsConstructors in com.sun.pdfview.action with parameters of type PDFObject Constructor Description GoToAction(PDFObject obj, PDFObject root)
Creates a new instance of GoToAction from an object -
Uses of PDFObject in com.sun.pdfview.colorspace
Methods in com.sun.pdfview.colorspace with parameters of type PDFObject Modifier and Type Method Description static PDFColorSpace
PDFColorSpace. getColorSpace(PDFObject csobj, java.util.Map resources)
Get a color space specified in a PDFObjectPDFPaint
PatternSpace. getPaint(PDFObject patternObj, float[] components, java.util.Map resources)
Get the paint representing a pattern, optionally with the given base paint.Constructors in com.sun.pdfview.colorspace with parameters of type PDFObject Constructor Description CalGrayColor(PDFObject obj)
Create a new Calibrated Gray color space object, given the description in a PDF dictionary.CalRGBColor(PDFObject obj)
Create a new Calibrated RGB color space object, given the description in a PDF dictionary.IndexedColor(PDFColorSpace base, int count, PDFObject stream)
create a new IndexColor PDFColorSpace based on another PDFColorSpace, a count of colors, and a stream of values.LabColor(PDFObject obj)
Create a new Lab color space object, given the description in a PDF dictionary. -
Uses of PDFObject in com.sun.pdfview.decode
Methods in com.sun.pdfview.decode with parameters of type PDFObject Modifier and Type Method Description static java.nio.ByteBuffer
ASCII85Decode. decode(java.nio.ByteBuffer buf, PDFObject params)
decode an array of bytes in ASCII85 format.static java.nio.ByteBuffer
ASCIIHexDecode. decode(java.nio.ByteBuffer buf, PDFObject params)
decode an array of bytes in ASCIIHex format.protected static byte[]
CCITTFaxDecode. decode(PDFObject dict, byte[] source)
protected static java.nio.ByteBuffer
CCITTFaxDecode. decode(PDFObject dict, java.nio.ByteBuffer buf, PDFObject params)
protected static java.nio.ByteBuffer
DCTDecode. decode(PDFObject dict, java.nio.ByteBuffer buf, PDFObject params)
decode an array of bytes in DCT format.static java.nio.ByteBuffer
FlateDecode. decode(PDFObject dict, java.nio.ByteBuffer buf, PDFObject params)
decode a byte buffer in Flate format.static java.nio.ByteBuffer
LZWDecode. decode(java.nio.ByteBuffer buf, PDFObject params)
decode an array of LZW-encoded bytes to a byte array.static java.nio.ByteBuffer
RunLengthDecode. decode(java.nio.ByteBuffer buf, PDFObject params)
decode an array of bytes in RunLength format.static java.nio.ByteBuffer
PDFDecoder. decodeStream(PDFObject dict, java.nio.ByteBuffer streamBuf)
decode a byte[] stream using the filters specified in the object's dictionary (passed as argument 1).static boolean
CCITTFaxDecode. getOptionFieldBoolean(PDFObject dict, java.lang.String name, boolean defaultValue)
static int
CCITTFaxDecode. getOptionFieldInt(PDFObject dict, java.lang.String name, int defaultValue)
static Predictor
Predictor. getPredictor(PDFObject params)
Get an instance of a predictor -
Uses of PDFObject in com.sun.pdfview.decrypt
Methods in com.sun.pdfview.decrypt with parameters of type PDFObject Modifier and Type Method Description private static PDFDecrypter
PDFDecrypterFactory. createCryptFilterDecrypter(PDFObject encryptDict, PDFObject documentId, PDFPassword password, int v)
Create a decrypter working from a crypt filter dictionary, as in version 4 encryptionstatic PDFDecrypter
PDFDecrypterFactory. createDecryptor(PDFObject encryptDict, PDFObject documentId, PDFPassword password)
Create a decryptor for a given encryption dictionary.private static PDFDecrypter
PDFDecrypterFactory. createStandardDecrypter(PDFObject encryptDict, PDFObject documentId, PDFPassword password, java.lang.Integer keyLength, boolean encryptMetadata, StandardDecrypter.EncryptionAlgorithm encryptionAlgorithm)
Create a standard single-algorithm AES or RC4 decrypter.java.nio.ByteBuffer
CryptFilterDecrypter. decryptBuffer(java.lang.String cryptFilterName, PDFObject streamObj, java.nio.ByteBuffer streamBuf)
java.nio.ByteBuffer
IdentityDecrypter. decryptBuffer(java.lang.String cryptFilterName, PDFObject streamObj, java.nio.ByteBuffer streamBuf)
java.nio.ByteBuffer
PDFDecrypter. decryptBuffer(java.lang.String cryptFilterName, PDFObject streamObj, java.nio.ByteBuffer streamBuf)
Decrypt a buffer of datajava.nio.ByteBuffer
StandardDecrypter. decryptBuffer(java.lang.String cryptFilterName, PDFObject streamObj, java.nio.ByteBuffer streamBuf)
Constructors in com.sun.pdfview.decrypt with parameters of type PDFObject Constructor Description StandardDecrypter(StandardDecrypter.EncryptionAlgorithm encryptionAlgorithm, PDFObject documentId, int keyBitLength, int revision, byte[] oValue, byte[] uValue, int pValue, boolean encryptMetadata, PDFPassword password)
Class constructor -
Uses of PDFObject in com.sun.pdfview.font
Fields in com.sun.pdfview.font declared as PDFObject Modifier and Type Field Description private PDFObject
PDFFontDescriptor. charSet
Holds value of property charSet.private PDFObject
PDFFontDescriptor. fontFile
Holds value of property fontFile.private PDFObject
PDFFontDescriptor. fontFile2
Holds value of property fontFile2.private PDFObject
PDFFontDescriptor. fontFile3
Holds value of property fontFile3.Fields in com.sun.pdfview.font with type parameters of type PDFObject Modifier and Type Field Description (package private) java.util.HashMap<java.lang.String,PDFObject>
Type3Font. rsrc
resources for the character definitionsMethods in com.sun.pdfview.font that return PDFObject Modifier and Type Method Description PDFObject
PDFFontDescriptor. getCharSet()
Getter for property charSet.PDFObject
PDFFontDescriptor. getFontFile()
Getter for property fontFile.PDFObject
PDFFontDescriptor. getFontFile2()
Getter for property fontFile2.PDFObject
PDFFontDescriptor. getFontFile3()
Getter for property fontFile3.Methods in com.sun.pdfview.font with parameters of type PDFObject Modifier and Type Method Description static PDFCMap
PDFCMap. getCMap(PDFObject map)
Get a CMap, given a PDF object containing one of the following: a string name of a known CMap a stream containing a CMap definitionstatic PDFFont
PDFFont. getFont(PDFObject obj, java.util.HashMap<java.lang.String,PDFObject> resources)
get the PDFFont corresponding to the font described in a PDFObject.protected static PDFCMap
PDFCMap. parseCMap(PDFObject map)
Parse a CMap from a CMap streamvoid
PDFFontEncoding. parseEncoding(PDFObject encoding)
Parse a PDF encoding object for the actual encodingprivate void
CIDFontType2. parseWidths(PDFObject fontObj)
Parse the Widths array and DW objectvoid
PDFFontDescriptor. setCharSet(PDFObject charSet)
Setter for property charSet.void
PDFFontDescriptor. setFontFile(PDFObject fontFile)
Setter for property fontFile.void
PDFFontDescriptor. setFontFile2(PDFObject fontFile2)
Setter for property fontFile2.void
PDFFontDescriptor. setFontFile3(PDFObject fontFile3)
Setter for property fontFile3.Method parameters in com.sun.pdfview.font with type arguments of type PDFObject Modifier and Type Method Description static PDFFont
PDFFont. getFont(PDFObject obj, java.util.HashMap<java.lang.String,PDFObject> resources)
get the PDFFont corresponding to the font described in a PDFObject.Constructors in com.sun.pdfview.font with parameters of type PDFObject Constructor Description BuiltinFont(java.lang.String baseFont, PDFObject fontObj)
Create a new Builtin object based on the name of a built-in font This must be the name of one of the 14 built-in fonts!BuiltinFont(java.lang.String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor)
create a new BuiltingFont object based on a description of the font from the PDF file.CIDFontType2(java.lang.String baseName, PDFObject fontObj, PDFFontDescriptor descriptor)
create a new CIDFontType2 object based on the name of a built-in font and the font descriptorNativeFont(java.lang.String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor)
create a new NativeFont object based on a description of the font from the PDF file.OutlineFont(java.lang.String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor)
Creates a new instance of OutlineFontPDFFontDescriptor(PDFObject obj)
Creates a new instance of PDFFontDescriptorPDFFontEncoding(java.lang.String fontType, PDFObject encoding)
Creates a new instance of PDFFontEncodingTTFFont(java.lang.String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor)
create a new TrueTypeFont object based on a description of the font from the PDF file.Type0Font(java.lang.String baseFont, PDFObject fontObj, PDFFontDescriptor descriptor)
Creates a new instance of Type0FontType1CFont(java.lang.String baseFont, PDFObject src, PDFFontDescriptor descriptor)
create a new Type1CFont based on a font data stream and a descriptorType1Font(java.lang.String baseName, PDFObject src, PDFFontDescriptor descriptor)
create a new Type1Font based on a font data stream and an encoding.Type3Font(java.lang.String baseFont, PDFObject fontObj, java.util.HashMap<java.lang.String,PDFObject> resources, PDFFontDescriptor descriptor)
Generate a Type 3 font.Constructor parameters in com.sun.pdfview.font with type arguments of type PDFObject Constructor Description Type3Font(java.lang.String baseFont, PDFObject fontObj, java.util.HashMap<java.lang.String,PDFObject> resources, PDFFontDescriptor descriptor)
Generate a Type 3 font. -
Uses of PDFObject in com.sun.pdfview.function
Methods in com.sun.pdfview.function with parameters of type PDFObject Modifier and Type Method Description static PDFFunction
PDFFunction. getFunction(PDFObject obj)
Get a PDFFunction from a PDFObjectprotected void
FunctionType0. parse(PDFObject obj)
Read the function information from a PDF Objectprotected void
FunctionType2. parse(PDFObject obj)
Read the zeros, ones and exponentprotected void
FunctionType3. parse(PDFObject obj)
Read the function information from a PDF Object.protected void
FunctionType4. parse(PDFObject obj)
Read the function information from a PDF Objectprotected abstract void
PDFFunction. parse(PDFObject obj)
Read the function information from a PDF Object -
Uses of PDFObject in com.sun.pdfview.pattern
Fields in com.sun.pdfview.pattern with type parameters of type PDFObject Modifier and Type Field Description private java.util.HashMap<java.lang.String,PDFObject>
PatternType1. resources
the resources used by the image we will tileMethods in com.sun.pdfview.pattern that return types with arguments of type PDFObject Modifier and Type Method Description java.util.HashMap<java.lang.String,PDFObject>
PatternType1. getResources()
get the associated resourcesMethods in com.sun.pdfview.pattern with parameters of type PDFObject Modifier and Type Method Description static PDFPattern
PDFPattern. getPattern(PDFObject patternObj, java.util.Map resources)
Read a pattern from the given pattern streamstatic PDFShader
PDFShader. getShader(PDFObject shaderObj, java.util.Map resources)
Parse a pdf shader into a shader objectprotected void
PatternType1. parse(PDFObject patternObj, java.util.Map rsrc)
Parse the pattern from the PDFObject Note the resources passed in are ignored...protected abstract void
PDFPattern. parse(PDFObject patternObj, java.util.Map resources)
Parse the pattern-specific information from the pdf objectabstract void
PDFShader. parse(PDFObject shareObj)
Parse the shader-specific datavoid
ShaderType2. parse(PDFObject shaderObj)
Parse the shader-specific data
-