Content Editing Formatter
Interface for formatting text in content editing mode. This interface provides methods to apply various text formatting options such as font family, size, color, bold, and italic to the currently selected text or cursor position in a PDF document.
Functions
Applies the given format to the currently selected content.
Decreases the font size by one point from the current style. If the current size has a fractional value, it rounds down to the previous integer using floor. The minimum size is limited by the lowest value in availableFontSizes.
Increases the font size by one point from the current style. If the current size has a fractional value, it rounds up to the next integer using ceil. The maximum size is limited by the highest value in availableFontSizes.
Checks whether the font size can be decreased from the current style.
Checks whether the font size can be increased from the current style.
Sets a font for the current selection/cursor position.
Sets the font color for the current selection/cursor position.
Sets the font size for the current selection/cursor position.
Sets the line spacing for the current selection/cursor position.
Sets the text alignment for the current selection/cursor position.