|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.etymon.pjx.util.PdfModifier
public class PdfModifier
Provides methods for retrieving and modifying various elements of a PDF document.
Field Summary | |
---|---|
protected PdfManager |
_m
Deprecated. The manager associated with this document. |
protected static PdfName |
PDFNAME_ACROFORM
Deprecated. A PdfName object representing the name
AcroForm . |
protected static PdfName |
PDFNAME_FIELDS
Deprecated. A PdfName object representing the name
Fields . |
protected static PdfName |
PDFNAME_KIDS
Deprecated. A PdfName object representing the name
Kids . |
protected static PdfName |
PDFNAME_PAGES
Deprecated. A PdfName object representing the name
Pages . |
protected static PdfName |
PDFNAME_ROOT
Deprecated. A PdfName object representing the name
Root . |
Constructor Summary | |
---|---|
PdfModifier(PdfManager manager)
Deprecated. Constructs a PdfModifier instance based on a
specified PdfManager . |
Method Summary | |
---|---|
private static void |
adjustTextMatrixX(java.util.Vector pmVector,
float rectWidth)
Deprecated. |
private static void |
clearTextMatrixX(java.util.Vector pmVector)
Deprecated. |
PdfDictionary |
getCatalog()
Deprecated. Use PdfCatalog.getCatalog() . |
PdfReference |
getCatalogReference()
Deprecated. Use PdfCatalog.getCatalog() . |
private void |
getFieldsAddField(java.util.ArrayList fieldList,
PdfReference fieldRef)
Deprecated. |
int |
getPageCount()
Deprecated. Use PdfPageTree.getNumberOfPages() . |
PdfDictionary |
getPageTreeRoot()
Deprecated. Use PdfPageTree.getRoot() . |
PdfReference |
getPageTreeRootReference()
Deprecated. Use PdfPageTree.getRoot() . |
private void |
inheritFieldAttributesCollapse(PjName name,
java.util.Hashtable ht,
PjDictionary newNode,
PjDictionary parent)
Deprecated. |
PdfDictionary |
pjUpdateFieldValue(PdfDictionary origField,
PdfDictionary field,
java.lang.String value)
Deprecated. |
private static void |
replaceTextData(java.util.Vector pmVector,
PdfString oldText,
PdfString newText)
Deprecated. |
void |
setCatalog(PdfDictionary catalog)
Deprecated. Use PdfManager.setObject(PdfObject, int) . |
void |
setPageTreeRoot(PdfDictionary pageTreeRoot)
Deprecated. Use PdfManager.setObject(PdfObject, int) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final PdfName PDFNAME_ACROFORM
PdfName
object representing the name
AcroForm
.
protected static final PdfName PDFNAME_FIELDS
PdfName
object representing the name
Fields
.
protected static final PdfName PDFNAME_KIDS
PdfName
object representing the name
Kids
.
protected static final PdfName PDFNAME_PAGES
PdfName
object representing the name
Pages
.
protected static final PdfName PDFNAME_ROOT
PdfName
object representing the name
Root
.
protected PdfManager _m
Constructor Detail |
---|
public PdfModifier(PdfManager manager)
PdfModifier
instance based on a
specified PdfManager
.
Method Detail |
---|
public int getPageCount() throws java.io.IOException, PdfFormatException
PdfPageTree.getNumberOfPages()
.
java.io.IOException
PdfFormatException
public PdfReference getCatalogReference() throws PdfFormatException
PdfCatalog.getCatalog()
.
PdfFormatException
public PdfDictionary getCatalog() throws java.io.IOException, PdfFormatException
PdfCatalog.getCatalog()
.
java.io.IOException
PdfFormatException
public void setCatalog(PdfDictionary catalog) throws PdfFormatException
PdfManager.setObject(PdfObject, int)
.
catalog
- the new catalog.
PdfFormatException
public PdfReference getPageTreeRootReference() throws java.io.IOException, PdfFormatException
PdfPageTree.getRoot()
.
java.io.IOException
PdfFormatException
public PdfDictionary getPageTreeRoot() throws java.io.IOException, PdfFormatException
PdfPageTree.getRoot()
.
java.io.IOException
PdfFormatException
public void setPageTreeRoot(PdfDictionary pageTreeRoot) throws java.io.IOException, PdfFormatException
PdfManager.setObject(PdfObject, int)
.
pageTreeNode
- the new root node.
java.io.IOException
PdfFormatException
private void getFieldsAddField(java.util.ArrayList fieldList, PdfReference fieldRef) throws java.io.IOException, PdfFormatException
java.io.IOException
PdfFormatException
public PdfDictionary pjUpdateFieldValue(PdfDictionary origField, PdfDictionary field, java.lang.String value) throws java.io.IOException, PdfFormatException
PdfFormatException
java.io.IOException
private static void replaceTextData(java.util.Vector pmVector, PdfString oldText, PdfString newText) throws PdfFormatException
PdfFormatException
private static void adjustTextMatrixX(java.util.Vector pmVector, float rectWidth)
private static void clearTextMatrixX(java.util.Vector pmVector)
private void inheritFieldAttributesCollapse(PjName name, java.util.Hashtable ht, PjDictionary newNode, PjDictionary parent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |