Class PageCountWorker

java.lang.Object
com.itextpdf.html2pdf.attach.impl.tags.SpanTagWorker
com.itextpdf.html2pdf.attach.impl.tags.PageCountWorker
All Implemented Interfaces:
IDisplayAware, ITagWorker

public class PageCountWorker extends SpanTagWorker
TagWorker class for the page count.
  • Constructor Details

    • PageCountWorker

      public PageCountWorker (com.itextpdf.styledxmlparser.node.IElementNode element, ProcessorContext context)
      Creates a new PageCountWorker instance.
      Parameters:
      element - the element
      context - the context
  • Method Details

    • processEnd

      public void processEnd (com.itextpdf.styledxmlparser.node.IElementNode element, ProcessorContext context)
      Description copied from interface: ITagWorker
      Placeholder for what needs to be done after the content of a tag has been processed.
      Specified by:
      processEnd in interface ITagWorker
      Overrides:
      processEnd in class SpanTagWorker
      Parameters:
      element - the element node
      context - the processor context
    • getElementResult

      public com.itextpdf.layout.IPropertyContainer getElementResult()
      Description copied from interface: ITagWorker
      Gets a processed object if it can be expressed as an IPropertyContainer instance.
      Specified by:
      getElementResult in interface ITagWorker
      Overrides:
      getElementResult in class SpanTagWorker
      Returns:
      the same object on every call. Might return null either if result is not yet produced or if this particular tag worker doesn't produce result in a form of IPropertyContainer.