PJX

com.etymon.pjx.util
Class PdfModifier

java.lang.Object
  extended bycom.etymon.pjx.util.PdfModifier

public class PdfModifier
extends java.lang.Object

Provides methods for retrieving and modifying various elements of a PDF document.


Constructor Summary
PdfModifier(PdfManager manager)
          Deprecated. Constructs a PdfModifier instance based on a specified PdfManager.
 
Method Summary
 PdfDictionary getCatalog()
          Deprecated. Use PdfCatalog.getCatalog().
 PdfReference getCatalogReference()
          Deprecated. Use PdfCatalog.getCatalog().
 int getPageCount()
          Deprecated. Use PdfPageTree.getNumberOfPages().
 PdfDictionary getPageTreeRoot()
          Deprecated. Use PdfPageTree.getRoot().
 PdfReference getPageTreeRootReference()
          Deprecated. Use PdfPageTree.getRoot().
 PdfDictionary pjUpdateFieldValue(PdfDictionary origField, PdfDictionary field, java.lang.String value)
          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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

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

Copyright © 1998-2004 Etymon Systems, Inc.

The PDF data structures, operators, and specification are
Copyright © 1985-2004 Adobe Systems Incorporated.