com.etymon.pjx.util
Class PdfModifier

java.lang.Object
  extended by com.etymon.pjx.util.PdfModifier

Deprecated.

public class PdfModifier
extends java.lang.Object

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

PDFNAME_ACROFORM

protected static final PdfName PDFNAME_ACROFORM
Deprecated. 
A PdfName object representing the name AcroForm.


PDFNAME_FIELDS

protected static final PdfName PDFNAME_FIELDS
Deprecated. 
A PdfName object representing the name Fields.


PDFNAME_KIDS

protected static final PdfName PDFNAME_KIDS
Deprecated. 
A PdfName object representing the name Kids.


PDFNAME_PAGES

protected static final PdfName PDFNAME_PAGES
Deprecated. 
A PdfName object representing the name Pages.


PDFNAME_ROOT

protected static final PdfName PDFNAME_ROOT
Deprecated. 
A PdfName object representing the name Root.


_m

protected PdfManager _m
Deprecated. 
The manager associated with this document.

Constructor Detail

PdfModifier

public PdfModifier(PdfManager manager)
Deprecated. 
Constructs a PdfModifier instance based on a specified PdfManager.

Method Detail

getPageCount

public int getPageCount()
                 throws java.io.IOException,
                        PdfFormatException
Deprecated. Use PdfPageTree.getNumberOfPages().

Returns the number of pages in the document.

Returns:
the number of pages.
Throws:
java.io.IOException
PdfFormatException

getCatalogReference

public PdfReference getCatalogReference()
                                 throws PdfFormatException
Deprecated. Use PdfCatalog.getCatalog().

Retrieves an indirect reference to the document's catalog.

Returns:
the indirect reference.
Throws:
PdfFormatException

getCatalog

public PdfDictionary getCatalog()
                         throws java.io.IOException,
                                PdfFormatException
Deprecated. Use PdfCatalog.getCatalog().

Retrieves the document's catalog.

Returns:
the catalog object.
Throws:
java.io.IOException
PdfFormatException

setCatalog

public void setCatalog(PdfDictionary catalog)
                throws PdfFormatException
Deprecated. Use PdfManager.setObject(PdfObject, int).

Sets the document's catalog to a specified value.

Parameters:
catalog - the new catalog.
Throws:
PdfFormatException

getPageTreeRootReference

public PdfReference getPageTreeRootReference()
                                      throws java.io.IOException,
                                             PdfFormatException
Deprecated. Use PdfPageTree.getRoot().

Retrieves an indirect reference to the root node of the document's page tree.

Returns:
the indirect reference.
Throws:
java.io.IOException
PdfFormatException

getPageTreeRoot

public PdfDictionary getPageTreeRoot()
                              throws java.io.IOException,
                                     PdfFormatException
Deprecated. Use PdfPageTree.getRoot().

Retrieves the root node of the document's page tree.

Returns:
the root node object.
Throws:
java.io.IOException
PdfFormatException

setPageTreeRoot

public void setPageTreeRoot(PdfDictionary pageTreeRoot)
                     throws java.io.IOException,
                            PdfFormatException
Deprecated. Use PdfManager.setObject(PdfObject, int).

Sets the root node of the document's page tree to a specified value.

Parameters:
pageTreeNode - the new root node.
Throws:
java.io.IOException
PdfFormatException

getFieldsAddField

private void getFieldsAddField(java.util.ArrayList fieldList,
                               PdfReference fieldRef)
                        throws java.io.IOException,
                               PdfFormatException
Deprecated. 

Throws:
java.io.IOException
PdfFormatException

pjUpdateFieldValue

public PdfDictionary pjUpdateFieldValue(PdfDictionary origField,
                                        PdfDictionary field,
                                        java.lang.String value)
                                 throws java.io.IOException,
                                        PdfFormatException
Deprecated. 

This method is provided for compatibility with PJ. It will be transitioned toward a dedicated field class.

Throws:
PdfFormatException
java.io.IOException

replaceTextData

private static void replaceTextData(java.util.Vector pmVector,
                                    PdfString oldText,
                                    PdfString newText)
                             throws PdfFormatException
Deprecated. 

Throws:
PdfFormatException

adjustTextMatrixX

private static void adjustTextMatrixX(java.util.Vector pmVector,
                                      float rectWidth)
Deprecated. 


clearTextMatrixX

private static void clearTextMatrixX(java.util.Vector pmVector)
Deprecated. 


inheritFieldAttributesCollapse

private void inheritFieldAttributesCollapse(PjName name,
                                            java.util.Hashtable ht,
                                            PjDictionary newNode,
                                            PjDictionary parent)
Deprecated.