Package | Description |
---|---|
edu.harvard.hul.ois.jhove.module |
Contains the main classes for JHOVE modules.
|
edu.harvard.hul.ois.jhove.module.pdf |
Contains supporting classes for the PDF-HUL module.
|
Modifier and Type | Method and Description |
---|---|
protected void |
PdfModule.addDateProperty(PdfDictionary dict,
List<Property> propList,
String key,
String propName)
Add a date property, based on a dictionary entry
with a string value, to a specified List.
|
protected Property |
PdfModule.buildAnnotProperty(PdfDictionary annot,
RepInfo info) |
protected Property |
PdfModule.buildOutlineItemProperty(PdfDictionary dict,
RepInfo info) |
protected Property |
PdfModule.buildOutlinesProperty(PdfDictionary dict,
RepInfo info) |
protected Property |
PdfModule.buildPageLabelProperty(PageObject page,
int pageIndex,
int[] nomNumRef) |
protected Property |
PdfModule.buildPageProperty(PageObject page,
int idx,
RepInfo info) |
protected PdfObject |
PdfModule.getObject(int objIndex,
int recGuard)
Returns an object of a given number.
|
protected int |
PdfModule.resolveIndirectDest(PdfSimpleObject key) |
PdfObject |
PdfModule.resolveIndirectObject(PdfObject obj)
If the argument is an indirect object reference,
returns the object it resolves to, otherwise returns
the object itself.
|
Modifier and Type | Class and Description |
---|---|
class |
PdfInvalidException
Exception subclass used internally by the PDF module.
|
class |
PdfMalformedException
Exception subclass used internally by the PDF module.
|
Modifier and Type | Method and Description |
---|---|
void |
Literal.appendHex(int ch)
Append a hex character.
|
void |
StructureElement.buildSubtree()
Build this element's subtree, if any
This checks the "K" entry in the dictionary and
locates all referened structure elements.
|
void |
PageLabelNode.buildSubtree()
Build the subtree of descendants of this node, using
the Kids entry in the dictionary.
|
void |
PageTreeNode.buildSubtree(boolean toplevel,
int recGuard)
Builds the subtree of descendants of this node, using
the Kids entry in the dictionary.
|
void |
PageTreeNode.buildSubtree(boolean toplevel,
int recGuard,
int objNumber,
int genNumber)
Builds the subtree of descendants of this node, using
the Kids entry in the dictionary.
|
void |
StructureElement.checkAttributes()
Determine if the attributes of this element are
valid.
|
void |
Literal.convertHex()
Convert the raw hex data.
|
boolean |
PageLabelNode.findNextKeyValue()
Obtain the next key-value pair from the tree.
|
PdfObject |
NameTreeNode.get(Vector key)
Get the PdfObject which matches the key, or null if there is no match.
|
PdfArray |
PageObject.getAnnotations()
Return the page's Annots array of dictionaries, or null if none
|
PdfArray |
PageObject.getArtBox()
Returns the ArtBox for the page, or null if none.
|
PdfArray |
PageObject.getBleedBox()
Returns the BleedBox for the page, or null if none.
|
Filter[] |
PdfStream.getFilters()
Returns an array (possibly empty but not null) of the filters for
this Stream.
|
PdfDictionary |
DocNode.getFontResources()
Returns the dictionary of fonts within the node's Resources
dictionary, if both exist.
|
Token |
Tokenizer.getNext()
Parses out and returns a token from the input file.
|
Token |
Parser.getNext()
Gets a token.
|
Token |
Parser.getNext(Class<?> clas,
String errMsg)
A class-sensitive version of getNext.
|
Token |
Tokenizer.getNext(long max)
Parses out and returns a token from the input file.
|
Token |
Parser.getNext(long max)
Gets a token.
|
PdfObject |
ObjectStream.getObject(int objnum)
Extracts an object from the stream.
|
PdfDictionary |
DocNode.getResources()
Get the Resources dictionary.
|
PdfArray |
PageObject.getTrimBox()
Returns the TrimBox for the page, or null if none.
|
void |
Stream.initRead(RandomAccessFile raf)
Prepares for reading the Stream.
|
void |
CrossRefStream.initRead(RandomAccessFile raf)
Prepares for reading the Stream.
|
protected abstract void |
Tokenizer.initStream(Stream token)
Initialization code for Stream object.
|
protected void |
StreamTokenizer.initStream(Stream token)
Streams can occur only in files, not in streams,
so this should never be called.
|
void |
PageObject.loadContent(PdfModule module)
Find the content stream(s) for this page.
|
protected List |
PdfStream.makeFilterList() |
PdfArray |
Parser.readArray()
Reads an array.
|
int |
Stream.readAsciiInt()
Reads an ASCII string, which may be preceded by white space.
|
PdfDictionary |
Parser.readDictionary()
Reads a dictionary.
|
void |
ObjectStream.readIndex()
Reads the index of the object stream.
|
PdfObject |
Parser.readObject(boolean allowPseudo)
Reads an object.
|
PdfObject |
Parser.readObjectDef()
Reads an object definition, from wherever we are in the stream to
the completion of one full object after the obj keyword.
|
PdfObject |
Parser.readObjectDef(Numeric objNumTok)
Reads an object definition, given the first numeric object, which
has already been read and is passed as an argument.
|
abstract void |
Tokenizer.seek(long offset)
Set the Tokenizer to a new position in the file.
|
void |
StreamTokenizer.seek(long offset)
Set the Tokenizer to a new position in the stream.
|
void |
Parser.seek(long offset)
Positions the file to the specified offset, and
resets the state for a new token stream.
|
protected abstract void |
Tokenizer.setStreamOffset(Stream token)
Sets the offset of a Stream to the current file position.
|
protected void |
StreamTokenizer.setStreamOffset(Stream token)
Sets the offset of a Stream to the current file position.
|
Constructor and Description |
---|
Destination(PdfObject destObj,
PdfModule module,
boolean named)
Constructor.
|
FileSpecification(PdfObject obj)
Constructor.
|
NameTreeNode(PdfModule module,
NameTreeNode parent,
PdfDictionary dict)
Constructor.
|
PdfStream(PdfDictionary dict,
Stream stream)
Creates a PdfStream.
|
PdfStream(PdfDictionary dict,
Stream stream,
int objNumber,
int genNumber)
Creates a PdfStream
|
StructureElement(PdfDictionary dict,
StructureTree tree)
Constructor.
|
StructureTree(PdfModule module,
RandomAccessFile raf,
Parser parser)
Constructor.
|
StructureTree(PdfModule module,
RandomAccessFile raf,
Parser parser,
boolean tranzhent)
Constructor with transient flag.
|
Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.