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 |
Modifier and Type | Field and Description |
---|---|
static PDFObject |
PDFObject.nullObj
the NULL PDFObject
|
Modifier and Type | Method and Description |
---|---|
PDFObject |
PDFObject.dereference()
Make sure that this object is dereferenced.
|
PDFObject |
PDFFile.dereference(PDFXref ref,
PDFDecrypter decrypter)
Used internally to track down PDFObject references.
|
PDFObject |
NameTree.find(java.lang.String key)
Find the PDF object corresponding to the given String in a name tree
|
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.
|
PDFObject |
PDFObject.getDictRef(java.lang.String key)
get the value associated with a particular key in the
dictionary.
|
PDFObject |
PDFXrefEntry.getObject() |
PDFObject |
PDFDestination.getPage()
Get the PDF Page object associated with this destination
|
PDFObject |
PDFFile.getRoot()
get the root PDFObject of this PDFFile.
|
Modifier and Type | Method and Description |
---|---|
java.util.HashMap<java.lang.String,PDFObject> |
PDFObject.getDictionary()
get the dictionary as a HashMap.
|
Modifier and Type | Method and Description |
---|---|
static PDFImage |
PDFImage.createImage(PDFObject obj,
java.util.Map resources)
Read a PDFImage from an image dictionary and stream
|
static void |
PDFImage.dump(PDFObject obj) |
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).
|
int |
PDFFile.getPageNumber(PDFObject page)
Gets the page number (starting from 1) of the page represented by
a particular PDFObject.
|
static java.awt.geom.Rectangle2D |
PDFFile.parseNormalisedRectangle(PDFObject obj) |
void |
PDFXrefEntry.setObject(PDFObject obj)
Cache a reference to the target object of this entry
|
Constructor and Description |
---|
NameTree(PDFObject root)
Creates a new instance of NameTree
|
PDFDestination(PDFObject pageObj,
int type)
Creates a new instance of PDFDestination
|
PDFImage(PDFObject imageObj)
Create an instance of a PDFImage
|
Constructor and Description |
---|
PDFParser(PDFPage cmds,
byte[] stream,
java.util.HashMap<java.lang.String,PDFObject> resources)
Don't call this constructor directly.
|
Modifier and Type | Method and Description |
---|---|
PDFObject |
PDFAction.getNext()
Get the next action or array of actions
|
Modifier and Type | Method and Description |
---|---|
static PDFAction |
PDFAction.getAction(PDFObject obj,
PDFObject root)
Get an action of the appropriate type from a PDFObject
|
void |
PDFAction.setNext(PDFObject next)
Set the next action or array of actions
|
Constructor and Description |
---|
GoToAction(PDFObject obj,
PDFObject root)
Creates a new instance of GoToAction from an object
|
Modifier and Type | Method and Description |
---|---|
static PDFColorSpace |
PDFColorSpace.getColorSpace(PDFObject csobj,
java.util.Map resources)
Get a color space specified in a PDFObject
|
PDFPaint |
PatternSpace.getPaint(PDFObject patternObj,
float[] components,
java.util.Map resources)
Get the paint representing a pattern, optionally with the given
base paint.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
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 |
ASCIIHexDecode.decode(java.nio.ByteBuffer buf,
PDFObject params)
decode an array of bytes in ASCIIHex format.
|
static java.nio.ByteBuffer |
ASCII85Decode.decode(java.nio.ByteBuffer buf,
PDFObject params)
decode an array of bytes in ASCII85 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) |
static java.nio.ByteBuffer |
FlateDecode.decode(PDFObject dict,
java.nio.ByteBuffer buf,
PDFObject params)
decode a byte buffer in Flate format.
|
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 |
PDFDecoder.decodeStream(PDFObject dict,
java.nio.ByteBuffer streamBuf,
java.util.Set<java.lang.String> filterLimits)
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
|
static boolean |
PDFDecoder.isEncrypted(PDFObject dict)
Determines whether a stream is encrypted or not; note that encodings
(e.g., Flate, LZW) are not considered encryptions.
|
static boolean |
PDFDecoder.isLastFilter(PDFObject dict,
java.util.Set<java.lang.String> filters) |
Modifier and Type | Method and Description |
---|---|
static PDFDecrypter |
PDFDecrypterFactory.createDecryptor(PDFObject encryptDict,
PDFObject documentId,
PDFPassword password)
Create a decryptor for a given encryption dictionary.
|
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 data
|
java.nio.ByteBuffer |
StandardDecrypter.decryptBuffer(java.lang.String cryptFilterName,
PDFObject streamObj,
java.nio.ByteBuffer streamBuf) |
java.nio.ByteBuffer |
CryptFilterDecrypter.decryptBuffer(java.lang.String cryptFilterName,
PDFObject streamObj,
java.nio.ByteBuffer streamBuf) |
Constructor and Description |
---|
StandardDecrypter(StandardDecrypter.EncryptionAlgorithm encryptionAlgorithm,
PDFObject documentId,
int keyBitLength,
int revision,
byte[] oValue,
byte[] uValue,
int pValue,
boolean encryptMetadata,
PDFPassword password)
Class constructor
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and 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 definition
|
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.
|
protected static PDFCMap |
PDFCMap.parseCMap(PDFObject map)
Parse a CMap from a CMap stream
|
void |
PDFFontEncoding.parseEncoding(PDFObject encoding)
Parse a PDF encoding object for the actual encoding
|
void |
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.
|
Modifier and Type | Method and 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.
|
Constructor and 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 descriptor
|
NativeFont(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 OutlineFont
|
PDFFontDescriptor(PDFObject obj)
Creates a new instance of PDFFontDescriptor
|
PDFFontEncoding(java.lang.String fontType,
PDFObject encoding)
Creates a new instance of PDFFontEncoding
|
TTFFont(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 Type0Font
|
Type1CFont(java.lang.String baseFont,
PDFObject src,
PDFFontDescriptor descriptor)
create a new Type1CFont based on a font data stream and a descriptor
|
Type1Font(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 and Description |
---|
Type3Font(java.lang.String baseFont,
PDFObject fontObj,
java.util.HashMap<java.lang.String,PDFObject> resources,
PDFFontDescriptor descriptor)
Generate a Type 3 font.
|
Modifier and Type | Method and Description |
---|---|
static PDFFunction |
PDFFunction.getFunction(PDFObject obj)
Get a PDFFunction from a PDFObject
|
protected void |
FunctionType4.parse(PDFObject obj)
Read the function information from a PDF Object
|
protected void |
FunctionType3.parse(PDFObject obj)
Read the function information from a PDF Object.
|
protected void |
FunctionType2.parse(PDFObject obj)
Read the zeros, ones and exponent
|
protected abstract void |
PDFFunction.parse(PDFObject obj)
Read the function information from a PDF Object
|
protected void |
FunctionType0.parse(PDFObject obj)
Read the function information from a PDF Object
|
Modifier and Type | Method and Description |
---|---|
java.util.HashMap<java.lang.String,PDFObject> |
PatternType1.getResources()
get the associated resources
|
Modifier and Type | Method and Description |
---|---|
static PDFPattern |
PDFPattern.getPattern(PDFObject patternObj,
java.util.Map resources)
Read a pattern from the given pattern stream
|
static PDFShader |
PDFShader.getShader(PDFObject shaderObj,
java.util.Map resources)
Parse a pdf shader into a shader object
|
abstract void |
PDFShader.parse(PDFObject shareObj)
Parse the shader-specific data
|
void |
ShaderType2.parse(PDFObject shaderObj)
Parse the shader-specific data
|
protected abstract void |
PDFPattern.parse(PDFObject patternObj,
java.util.Map resources)
Parse the pattern-specific information from the pdf object
|
protected void |
PatternType1.parse(PDFObject patternObj,
java.util.Map rsrc)
Parse the pattern from the PDFObject
Note the resources passed in are ignored...
|