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 TypeMethodDescriptionvoidprocessIndirectObjectDefinition(com.itextpdf.kernel.pdf.PdfObject object) Performs a required action with each definition of indirectPdfObjectof the document.com.itextpdf.kernel.pdf.PdfObjectprocessObject(com.itextpdf.kernel.pdf.PdfObject object) Performs a required action with the eachPdfObjectof the document.
-
Method Details
-
processIndirectObjectDefinition
void processIndirectObjectDefinition(com.itextpdf.kernel.pdf.PdfObject object) Performs a required action with each definition of indirectPdfObjectof 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 eachPdfObjectof 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
-