|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.etymon.pjx.util.PdfRenumberOffset
Modifies indirect references within a PDF object, adding a
specified offset to each object number in a reference. PdfObjectFilter is used to filter the indirect
references. This class is synchronized.
| Constructor Summary | |
PdfRenumberOffset()
Constructs a PdfRenumberOffset instance. |
|
| Method Summary | |
PdfObject |
postFilter(PdfObject obj)
This method is used by renumber(PdfObject) to filter indirect references and
should not be called externally. |
PdfObject |
preFilter(PdfObject obj)
This method is used by renumber(PdfObject) to filter indirect references and
should not be called externally. |
PdfObject |
renumber(PdfObject obj)
Adds an offset to the object number in each PdfReference within the specified object.
|
void |
resetGeneration(boolean reset)
Controls whether generation numbers will be set to 0 during the renumbering process. |
void |
setOffset(int offset)
Sets the offset value to add to each object number during renumbering. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PdfRenumberOffset()
PdfRenumberOffset instance. By
default, generation numbers will not be modified (see
resetGeneration(boolean)). The offset value defaults to 0
(see setOffset(int)).
| Method Detail |
public void setOffset(int offset)
offset - the offset to use.public void resetGeneration(boolean reset)
reset - if true, generation numbers will
be set to 0; otherwise they are not modified.
public PdfObject renumber(PdfObject obj)
throws PdfFormatException
PdfReference within the specified object.
The generation number may optionally be reset to 0 (see
resetGeneration(boolean)). The offset is specified with
setOffset(int).
obj - the object to renumber.
PdfFormatException
public PdfObject preFilter(PdfObject obj)
throws PdfFormatException
renumber(PdfObject) to filter indirect references and
should not be called externally. (It is not
synchronized.)
preFilter in interface PdfObjectFilterobj - the object to filter.
PdfFormatException
public PdfObject postFilter(PdfObject obj)
throws PdfFormatException
renumber(PdfObject) to filter indirect references and
should not be called externally. (It is not
synchronized.)
postFilter in interface PdfObjectFilterobj - the object to filter.
PdfFormatException
|
Copyright © 1998-2004 Etymon Systems, Inc. The PDF data structures, operators, and specification are |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||