Class CanvasTextAdditionContext

  • All Implemented Interfaces:
    IValidationContext

    public class CanvasTextAdditionContext
    extends java.lang.Object
    implements IValidationContext
    Class which contains context in which text was added to canvas.
    • Field Detail

      • text

        private final java.lang.String text
      • contentStream

        private final PdfStream contentStream
    • Constructor Detail

      • CanvasTextAdditionContext

        public CanvasTextAdditionContext​(java.lang.String text,
                                         PdfDictionary attributes,
                                         PdfStream contentStream)
        Creates CanvasTextAdditionContext instance.
        Parameters:
        text - text which was added to canvas
        attributes - PdfDictionary attributes which correspond to this text
        contentStream - PdfStream in which text is written
    • Method Detail

      • getText

        public java.lang.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
      • getContentStream

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