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.
-
Constructor Summary
ConstructorsConstructorDescriptionCanvasTextAdditionContext(String text, PdfDictionary attributes, PdfStream contentStream) CreatesCanvasTextAdditionContextinstance. -
Method Summary
-
Constructor Details
-
CanvasTextAdditionContext
CreatesCanvasTextAdditionContextinstance.- Parameters:
-
text- text which was added to canvas -
attributes-PdfDictionaryattributes which correspond to this text -
contentStream-PdfStreamin which text is written
-
-
Method Details
-
getText
Gets text which was added to canvas.- Returns:
- text which was added to canvas
-
getMcId
GetsPdfNumberwhich represents MCID of this text.- Returns:
-
PdfNumberwhich represents MCID of this text
-
getAttributes
GetsPdfDictionaryattributes which correspond to the added text.- Returns:
-
PdfDictionaryattributes which correspond to the added text
-
getContentStream
ReturnsPdfStreamon which text is written.- Returns:
-
PdfStreamon which text is written
-
getType
Description copied from interface:IValidationContextGets type of the context.- Specified by:
-
getTypein interfaceIValidationContext - Returns:
- the type
-