Interface IAction
- All Known Implementing Classes:
-
ReplaceObjectsAction
,SearchAction
public interface IAction
Defines an action performing during recursive traversing across
PdfDocument
structure.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processIndirectObjectDefinition
(com.itextpdf.kernel.pdf.PdfObject object) Performs a required action with each definition of indirectPdfObject
of the document.com.itextpdf.kernel.pdf.PdfObject
processObject
(com.itextpdf.kernel.pdf.PdfObject object) Performs a required action with the eachPdfObject
of the document.
-
Method Details
-
processIndirectObjectDefinition
void processIndirectObjectDefinition(com.itextpdf.kernel.pdf.PdfObject object) Performs a required action with each definition of indirectPdfObject
of the document. Note that every indirect object will also be independently processed byprocessObject(PdfObject)
method once per every indirect reference to the object in the document.- Parameters:
-
object
- is an indirect object definition to process
-
processObject
com.itextpdf.kernel.pdf.PdfObject processObject(com.itextpdf.kernel.pdf.PdfObject object) Performs a required action with the eachPdfObject
of the document. It works with both directs and indirect objects witch have a parent object. Currently it doesn't deal with keys of dictionaries.- Parameters:
-
object
- is a currentPdfObject
- Returns:
- an object that should replace current one. Can be the same instance as argument to avoid replacement
-