Package com.pd4ml.pdf.cos
The PDF object model (COS): arrays, dictionaries, names, numbers, strings, streams and indirect references, and
COSDocument, the whole document. The PDF tools are built on it.-
Interface Summary Interface Description COSObjectable Implemented by higher level, typed wrappers around a raw COS node (analogous to PDModel-style classes layered on top of PDFBox's COS layer).ICOSVisitor<T> Visitor over the COS object graph, e.g. -
Class Summary Class Description COSArray A PDF array object.COSBase Base class for every object that can appear in the COS (Carousel Object Structure) layer of a PDF document: booleans, numbers, strings, names, arrays, dictionaries, streams, the null object and indirect references.COSBoolean A PDF boolean object:trueorfalse.COSDictionary A PDF dictionary object: an unordered (here: insertion-ordered, for deterministic output) map fromCOSNamekeys to arbitrary COS values.COSDocument The in-memory representation of a whole PDF file's COS layer: the table of indirect objects keyed byCOSObjectKey, and the trailer dictionary that names the document's root ("Catalog") and other special objects.COSFloat A PDF real number object, e.g.COSInteger A PDF integer object.COSName A PDF name object, e.g.COSNull The PDFnullobject.COSNumber Base class for the two PDF numeric object types, integers and reals.COSObject An indirect reference, i.e.COSObjectKey The identity of an indirect PDF object: its object number and generation number, e.g.COSStream A PDF stream object: aCOSDictionary(the "stream dictionary") together with a run of raw bytes.COSString A PDF string object.Main Command-line demonstration of the COS API: parses a PDF file (path given as the first argument), prints a short structural summary, then evaluates every COS path expression given as subsequent arguments. -
Exception Summary Exception Description COSException Base checked exception for all errors originating from the COS object model, the low level PDF parser, or the COS path engine.