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 PdfDictionaryattributesprivate PdfStreamcontentStreamprivate PdfNumbermcIdprivate java.lang.Stringtext
-
Constructor Summary
Constructors Constructor Description CanvasTextAdditionContext(java.lang.String text, PdfDictionary attributes, PdfStream contentStream)CreatesCanvasTextAdditionContextinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfDictionarygetAttributes()GetsPdfDictionaryattributes which correspond to the added text.PdfStreamgetContentStream()ReturnsPdfStreamon which text is written.PdfNumbergetMcId()GetsPdfNumberwhich represents MCID of this text.java.lang.StringgetText()Gets text which was added to canvas.ValidationTypegetType()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)CreatesCanvasTextAdditionContextinstance.- Parameters:
text- text which was added to canvasattributes-PdfDictionaryattributes which correspond to this textcontentStream-PdfStreamin 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()
GetsPdfNumberwhich represents MCID of this text.- Returns:
PdfNumberwhich represents MCID of this text
-
getAttributes
public PdfDictionary getAttributes()
GetsPdfDictionaryattributes which correspond to the added text.- Returns:
PdfDictionaryattributes which correspond to the added text
-
getContentStream
public PdfStream getContentStream()
ReturnsPdfStreamon which text is written.- Returns:
PdfStreamon which text is written
-
getType
public ValidationType getType()
Description copied from interface:IValidationContextGets type of the context.- Specified by:
getTypein interfaceIValidationContext- Returns:
- the type
-
-