Class CanvasTextAdditionContext
- java.lang.Object
-
- com.itextpdf.kernel.validation.context.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 Summary
Fields Modifier and Type Field Description private PdfDictionary
attributes
private PdfStream
contentStream
private PdfNumber
mcId
private java.lang.String
text
-
Constructor Summary
Constructors Constructor Description CanvasTextAdditionContext(java.lang.String text, PdfDictionary attributes, PdfStream contentStream)
CreatesCanvasTextAdditionContext
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfDictionary
getAttributes()
GetsPdfDictionary
attributes which correspond to the added text.PdfStream
getContentStream()
ReturnsPdfStream
on which text is written.PdfNumber
getMcId()
GetsPdfNumber
which represents MCID of this text.java.lang.String
getText()
Gets text which was added to canvas.ValidationType
getType()
Gets type of the context.
-
-
-
Field Detail
-
text
private final java.lang.String text
-
mcId
private PdfNumber mcId
-
attributes
private final PdfDictionary attributes
-
contentStream
private final PdfStream contentStream
-
-
Constructor Detail
-
CanvasTextAdditionContext
public CanvasTextAdditionContext(java.lang.String text, PdfDictionary attributes, PdfStream contentStream)
CreatesCanvasTextAdditionContext
instance.- Parameters:
text
- text which was added to canvasattributes
-PdfDictionary
attributes which correspond to this textcontentStream
-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()
GetsPdfNumber
which represents MCID of this text.- Returns:
PdfNumber
which represents MCID of this text
-
getAttributes
public PdfDictionary getAttributes()
GetsPdfDictionary
attributes which correspond to the added text.- Returns:
PdfDictionary
attributes which correspond to the added text
-
getContentStream
public PdfStream getContentStream()
ReturnsPdfStream
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 interfaceIValidationContext
- Returns:
- the type
-
-