Package | Description |
---|---|
com.etymon.pj | |
com.etymon.pjx |
The fundamental classes for creation and modification of PDF
documents.
|
com.etymon.pjx.stream |
Provides methods for encoding and decoding PDF streams.
|
com.etymon.pjx.util |
Utility classes for performing common functions on PDF documents.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List |
PjxConvert.pjxGetFields(PdfManager manager)
Deprecated.
|
private static void |
PjxConvert.pjxGetFieldsAddField(PdfManager manager,
java.util.ArrayList fieldList,
PdfReference fieldRef)
Deprecated.
|
static PdfDictionary |
PjxConvert.pjxInheritFieldAttributes(PdfManager manager,
PdfDictionary d)
Deprecated.
|
static void |
PjxConvert.pjxUpdateFieldValue(PdfManager manager,
PdfDictionary origField,
PdfDictionary field,
java.lang.String value)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
PdfString.decodeHexString(java.nio.CharBuffer buf) |
protected static java.lang.String |
PdfString.decodeLiteralString(java.nio.CharBuffer buf) |
PdfObject |
PdfObject.filter(PdfObjectFilter f)
Filter this object recursively through
PdfObjectFilter . |
protected PdfObject |
PdfArray.filterContents(PdfObjectFilter f) |
protected PdfObject |
PdfDictionary.filterContents(PdfObjectFilter f) |
protected PdfObject |
PdfObject.filterContents(PdfObjectFilter f)
Second stage filtering, called by
filter(PdfObjectFilter) . |
PdfObject |
PdfManager.getObject(int objectNumber)
Retrieves the PDF object associated with a specified object
number.
|
PdfObject |
PdfManager.getObjectIndirect(PdfObject obj)
Retrieves the PDF object referred to by a specified
indirect reference object.
|
protected PdfObject |
PdfReader.parseObject(long start,
long end,
java.nio.CharBuffer cbuf,
XrefTable xt)
Parses and returns a PDF object from the input source.
|
protected static java.lang.String |
PdfString.pdfToString(java.nio.CharBuffer buf)
Converts a PDF string object in PDF format to a string
value as stored by this class.
|
protected static java.lang.String |
PdfName.pdfToString(java.lang.String pdf)
Converts a name object in PDF format to a string value as
stored by this class.
|
PdfObject |
PdfObjectFilter.postFilter(PdfObject obj)
Examines a PDF object and optionally returns a modified
object.
|
PdfObject |
PdfObjectFilter.preFilter(PdfObject obj)
Examines a PDF object and optionally returns a modified
object.
|
PdfObject |
PdfReader.readObject(long start,
long end,
boolean indirect,
XrefTable xt)
Reads a PDF object from the document.
|
protected XrefTable |
PdfReader.readPartialXrefTable(XrefTable xt,
long startxref,
long[] prev)
Reads an individual (partial) cross-reference table and
trailer dictionary from the PDF document.
|
long |
PdfReader.readStartxref()
Reads the startxref value from the PDF document.
|
XrefTable |
PdfReader.readXrefTable(long startxref)
Reads and compiles all cross-reference tables and trailer
dictionaries from the PDF document beginning at a specified
position.
|
long |
PdfManager.writeDocument(PdfWriter pdfWriter)
Writes the document in PDF format, including all
modifications made through this
PdfManager . |
long |
PdfManager.writeDocument(PdfWriter pdfWriter,
boolean useIncrementalUpdate)
Writes the document in PDF format, including all
modifications made through this
PdfManager . |
Constructor and Description |
---|
PdfManager(PdfReader pdfReader)
Constructs a
PdfManager representing an
existing PDF document. |
XrefTable(long[] index,
int[] generation,
byte[] usage,
PdfDictionary trailerDictionary)
Constructs a cross-reference table from a set of arrays and
a trailer dictionary.
|
Modifier and Type | Method and Description |
---|---|
PdfStream |
PdfEncodeStream.compressFlate(PdfStream stream)
Encodes a stream using the Flate compression method (based
on zlib/deflate).
|
PdfStream |
PdfDecodeStream.decode(PdfStream stream)
Applies a sequence of stream filter decoders to the
specified stream, based on the stream dictionary's Filter
entry, in order to decode the stream.
|
PdfStream |
PdfFlateFilter.decode(PdfStream stream) |
PdfStream |
PdfStreamFilter.decode(PdfStream stream)
Decodes a stream using this filter's decoding method.
|
PdfStream |
PdfFlateFilter.encode(PdfStream stream) |
PdfStream |
PdfStreamFilter.encode(PdfStream stream)
Encodes a stream using this filter's encoding method.
|
protected static java.util.List |
PdfDecodeStream.getFilterList(PdfManager manager,
java.util.Map streamDict)
Extracts the filter list from a stream dictionary map.
|
protected static void |
PdfDecodeStream.modifyFilterList(java.util.List filters,
java.util.Map streamDict)
Removes the first element of a filter list, adds the filter
list to a stream dictionary map, and returns the resultant
stream dictionary.
|
Modifier and Type | Method and Description |
---|---|
void |
AddImageSimple.addImage(java.nio.ByteBuffer image,
int imageWidth,
int imageHeight,
PdfName imageName,
PdfReference page,
float positionX,
float positionY,
float scaleX,
float scaleY,
boolean background)
Deprecated.
Adds a specified JPEG image (contained in a buffer) to a
page in the PDF document.
|
void |
AddImageSimple.addImage(java.io.File imageFile,
int imageWidth,
int imageHeight,
PdfName imageName,
PdfReference page,
float positionX,
float positionY,
float scaleX,
float scaleY,
boolean background)
Deprecated.
Adds a specified JPEG image (contained in a file) to a page
in the PDF document.
|
void |
PdfAppender.append()
Performs the append operation.
|
protected PdfReference |
PdfFieldTree.FieldTreeIterator.descendTree()
Descends the left-edge of the tree until reaching a
terminal node and returns its reference.
|
protected PdfObject |
PdfFieldTree.getAcroForm()
Returns the interactive form dictionary of the document.
|
PdfReference |
PdfCatalog.getCatalog()
Retrieves an indirect reference to the document's catalog.
|
PdfDictionary |
PdfModifier.getCatalog()
Deprecated.
|
PdfReference |
PdfModifier.getCatalogReference()
Deprecated.
|
private void |
PdfModifier.getFieldsAddField(java.util.ArrayList fieldList,
PdfReference fieldRef)
Deprecated.
|
java.lang.String |
PdfFieldTree.getFullyQualifiedName(PdfDictionary field)
Determines the fully qualified field name of a specified
field.
|
PdfFieldTreeIterator |
PdfFieldTree.getIterator()
Returns an iterator over the terminal field objects in this
document's field tree.
|
int |
PdfPageTree.getNumberOfPages()
Returns the number of pages in the document.
|
PdfReference |
PdfPageTree.getPage(int pageNumber)
Returns an indirect reference to a page object specified by
page number.
|
int |
PdfModifier.getPageCount()
Deprecated.
|
PdfDictionary |
PdfModifier.getPageTreeRoot()
Deprecated.
|
PdfReference |
PdfModifier.getPageTreeRootReference()
Deprecated.
|
java.util.Set |
PdfPageObjects.getReferenced(PdfObject obj)
Returns the set of all objects referenced by the specified
page object that are required for the page to be extracted
from the document.
|
java.util.Set |
PdfReferencedObjects.getReferenced(PdfObject obj)
Returns the set of all objects referenced by the specified
PDF object.
|
PdfReference |
PdfPageTree.getRoot()
Returns an indirect reference to the root node of the
document's page tree.
|
boolean |
PdfFieldTree.FieldTreeIterator.hasNext() |
boolean |
PdfFieldTreeIterator.hasNext()
Returns
true if any more field objects remain. |
PdfDictionary |
PdfFieldTree.inheritAttributes(PdfDictionary field)
Adds inherited attributes to a specified field dictionary
object.
|
PdfDictionary |
PdfPageTree.inheritAttributes(PdfDictionary page)
Adds inherited attributes to a specified page dictionary
object.
|
static void |
PdfAppender.main(java.lang.String[] args)
Appends multiple PDF documents together using this class.
|
PdfReference |
PdfFieldTree.FieldTreeIterator.next() |
PdfReference |
PdfFieldTreeIterator.next()
Returns an indirect reference to the next field object.
|
PdfDictionary |
PdfModifier.pjUpdateFieldValue(PdfDictionary origField,
PdfDictionary field,
java.lang.String value)
Deprecated.
|
PdfObject |
PdfReferencedObjects.postFilter(PdfObject obj)
This method is used by
getReferenced(PdfObject) and should not be called
externally. |
PdfObject |
PdfRenumberOffset.postFilter(PdfObject obj)
This method is used by
renumber(PdfObject) to filter indirect references and
should not be called externally. |
PdfObject |
PdfPageObjects.preFilter(PdfObject obj)
This method is used by
getReferenced(PdfObject) and should not be called
externally. |
PdfObject |
PdfReferencedObjects.preFilter(PdfObject obj)
This method is used by
getReferenced(PdfObject) and should not be called
externally; however, it may be overridden in subclasses
in order to pre-process the objects. |
PdfObject |
PdfRenumberOffset.preFilter(PdfObject obj)
This method is used by
renumber(PdfObject) to filter indirect references and
should not be called externally. |
PdfObject |
PdfRenumberOffset.renumber(PdfObject obj)
Adds an offset to the object number in each
PdfReference within the specified object. |
protected static PdfObject |
PdfAppender.renumber(PdfObject obj,
int offset) |
void |
PdfModifier.setCatalog(PdfDictionary catalog)
Deprecated.
|
void |
PdfModifier.setPageTreeRoot(PdfDictionary pageTreeRoot)
Deprecated.
|
Constructor and Description |
---|
FieldTreeIterator(PdfFieldTree ft,
PdfManager m)
Constructs an iterator over a field tree.
|
PdfAppender(java.util.List managers,
PdfWriter writer)
The class is initialized to read a list of PDF documents
(
PdfManager objects) in order and to write the
resultant document to a specified PdfWriter . |