public interface Character extends TextElement<Character>, Serializable
The Character interface defines the contract for accessing and manipulating a character represented by a rectangle in the GroupDocs.Viewer component. It provides methods to retrieve information such as the character itself, position, and size of the rectangle.
Example usage:
try (Viewer viewer = new Viewer("document.pdf")) {
PdfViewInfo viewInfo = (PdfViewInfo) viewer.getViewInfo(ViewInfoOptions.forHtmlView());
List<Character> characters = viewInfo.getPages().get(0).getLines().get(0).getWords().get(0).getCharacters();
Character character = characters.get(0);
// Use the character object for further operations
}
Note: The default implementation of this interface is CharacterImpl.
Viewer,
PdfViewInfo,
WordCopyright © 2024. All rights reserved.