public class PdfModifier
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
PdfModifier(PdfManager manager)
Deprecated.
Constructs a
PdfModifier instance based on a
specified PdfManager . |
Modifier and Type | Method and Description |
---|---|
private static void |
adjustTextMatrixX(java.util.Vector pmVector,
float rectWidth)
Deprecated.
|
private static void |
clearTextMatrixX(java.util.Vector pmVector)
Deprecated.
|
PdfDictionary |
getCatalog()
Deprecated.
|
PdfReference |
getCatalogReference()
Deprecated.
|
private void |
getFieldsAddField(java.util.ArrayList fieldList,
PdfReference fieldRef)
Deprecated.
|
int |
getPageCount()
Deprecated.
|
PdfDictionary |
getPageTreeRoot()
Deprecated.
|
PdfReference |
getPageTreeRootReference()
Deprecated.
|
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.
|
void |
setPageTreeRoot(PdfDictionary pageTreeRoot)
Deprecated.
|
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
public PdfModifier(PdfManager manager)
PdfModifier
instance based on a
specified PdfManager
.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)