resize To Fit Text
fun FreeTextAnnotation.resizeToFitText(document: PdfDocument, widthScaleMode: ScaleMode, heightScaleMode: ScaleMode)
Resizes this free text annotation so the text fits inside its bounds.
Parameters
document
Document used to acquire the page size.
width Scale Mode
Scale mode to use when determining the width.
height Scale Mode
Scale mode to use when determining the height.