Class CanvasTextAdditionContext
java.lang.Object
com.itextpdf.kernel.validation.context.CanvasTextAdditionContext
- All Implemented Interfaces:
IValidationContext
Class which contains context in which text was added to canvas.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PdfDictionaryprivate final PdfStreamprivate PdfNumberprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionCanvasTextAdditionContext(String text, PdfDictionary attributes, PdfStream contentStream) CreatesCanvasTextAdditionContextinstance. -
Method Summary
-
Field Details
-
text
-
mcId
-
attributes
-
contentStream
-
-
Constructor Details
-
CanvasTextAdditionContext
CreatesCanvasTextAdditionContextinstance.- Parameters:
text- text which was added to canvasattributes-PdfDictionaryattributes which correspond to this textcontentStream-PdfStreamin which text is written
-
-
Method Details
-
getText
Gets text which was added to canvas.- Returns:
- text which was added to canvas
-
getMcId
-
getAttributes
GetsPdfDictionaryattributes which correspond to the added text.- Returns:
PdfDictionaryattributes which correspond to the added text
-
getContentStream
-
getType
Description copied from interface:IValidationContextGets type of the context.- Specified by:
getTypein interfaceIValidationContext- Returns:
- the type
-