The most physical abstraction of a PDF document. This object handles the
random access representation of the PDF file.
An STDocument manages the cross ref access to data stream positions from COS
level objects. As such the ST and the COS package are highly interdependent.
createRandomAccess(ILocator pLocator) Create a new random access object for the document data.
Parameters: pLocator - The locator to the document data.
public void
garbageCollect() Start a garbage collection for the receiver.
Return a deep copy of the document. This will create a copy of the
documents content. The new documents location (random access) is
undefined. The objects will not preserve their key values.
A deep copy of this.
Create a new document representing the data referenced by locator.
Parameters: locator - The locator to the documents data A new document representing the data referenced by locator. throws: IOException - throws: COSLoadException -
Create a new random access object for the document data.
Parameters: pLocator - The locator to the document data. Create a new random access object for the document data. throws: IOException -
The /Linearized dictionary of the document. The /Linearized dictionary is
represented by the first entry in the (logically) first XRef section.
Note that this method may NOT return a dictionary even if the document
contains a /Linearized dictionary as the first object. This is the case
when the document was linearized and was written with an incremental
change so that the linearization is obsolete.
The valid /Linearized dictionary of the document.
The indirect object with object number objNum and generation number
genNum is looked up in the document. If the indirect object is not yet
available, it is created and registered.
Parameters: key - The indirect object with object number objNum and generationnumber genNum
The random access object for the documents data. Be aware that using the
IRandomAccess after it is closed will throw an IOException.
The random access object for the documents data.
The write mode to be used when the document is written the next time. If
defined this overrides any hint that is used when saving the document.
The write mode is reset after each "save".
The write mode to be used when the document is written.
When linearized reading is truly implemented, this check should be made
using the document length instead for performance reasons.
true if this document is linearized.
An iterator on the indirect objects of the storage layer document. This
includes garbage and purely technical objects like x ref streams.
An iterator on the indirect objects of the storage layerdocument. This includes garbage and purely technical objects likex ref streams.
The write mode to be used when the document is written the next time. If
defined this overrides any hint that is used when saving the document.
The write mode is reset after each "save".
Parameters: writeMode - The write mode to be used when the document is written.