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) CreatesCanvasTextAdditionContext
instance. -
Method Summary
-
Constructor Details
-
CanvasTextAdditionContext
CreatesCanvasTextAdditionContext
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 Details
-
getText
Gets text which was added to canvas.- Returns:
- text which was added to canvas
-
getMcId
GetsPdfNumber
which represents MCID of this text.- Returns:
-
PdfNumber
which represents MCID of this text
-
getAttributes
GetsPdfDictionary
attributes which correspond to the added text.- Returns:
-
PdfDictionary
attributes which correspond to the added text
-
getContentStream
ReturnsPdfStream
on which text is written.- Returns:
-
PdfStream
on which text is written
-
getType
Description copied from interface:IValidationContext
Gets type of the context.- Specified by:
-
getType
in interfaceIValidationContext
- Returns:
- the type
-