Class CanvasTextAdditionContext

java.lang.Object
com.itextpdf.kernel.validation.context.CanvasTextAdditionContext
All Implemented Interfaces:
IValidationContext

public class CanvasTextAdditionContext extends Object implements IValidationContext
Class which contains context in which text was added to canvas.
  • Constructor Details

  • Method Details

    • getText

      public String getText()
      Gets text which was added to canvas.
      Returns:
      text which was added to canvas
    • getMcId

      public PdfNumber getMcId()
      Gets PdfNumber which represents MCID of this text.
      Returns:
      PdfNumber which represents MCID of this text
    • getAttributes

      public PdfDictionary getAttributes()
      Gets PdfDictionary attributes which correspond to the added text.
      Returns:
      PdfDictionary attributes which correspond to the added text
    • getContentStream

      public PdfStream getContentStream()
      Returns PdfStream on which text is written.
      Returns:
      PdfStream on which text is written
    • getType

      public ValidationType getType()
      Description copied from interface: IValidationContext
      Gets type of the context.
      Specified by:
      getType in interface IValidationContext
      Returns:
      the type