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 Type
    Method
    Description
    void
    processIndirectObjectDefinition(com.itextpdf.kernel.pdf.PdfObject object)
    Performs a required action with each definition of indirect PdfObject of the document.
    com.itextpdf.kernel.pdf.PdfObject
    processObject(com.itextpdf.kernel.pdf.PdfObject object)
    Performs a required action with the each PdfObject of the document.
  • Method Details

    • processIndirectObjectDefinition

      void processIndirectObjectDefinition (com.itextpdf.kernel.pdf.PdfObject object)
      Performs a required action with each definition of indirect PdfObject of the document. Note that every indirect object will also be independently processed by processObject(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 each PdfObject 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 current PdfObject
      Returns:
      an object that should replace current one. Can be the same instance as argument to avoid replacement