|
#include <TextExtractor.h>
Public Member Functions | |
| SDF::Obj | GetFont () |
| |
| UString | GetFontName () |
| |
| double | GetFontSize () |
| |
| int | GetWeight () |
| |
| bool | IsItalic () |
| |
| bool | IsSerif () |
| |
| void | GetColor (UInt8 rgb[3]) |
| |
| bool | operator== (const Style &s) |
| bool | operator!= (const Style &s) |
| Style () | |
The class includes information about the font, font size, font styles, text color, etc.
| pdftron::PDF::TextExtractor::Style::Style | ( | ) |
| SDF::Obj pdftron::PDF::TextExtractor::Style::GetFont | ( | ) |
A high level font object can be instantiated as follows: In C++: pdftron.PDF.Font f(style.GetFont()) In C#: pdftron.PDF.Font f = new pdftron.PDF.Font(style.GetFont());
| UString pdftron::PDF::TextExtractor::Style::GetFontName | ( | ) |
| double pdftron::PDF::TextExtractor::Style::GetFontSize | ( | ) |
| int pdftron::PDF::TextExtractor::Style::GetWeight | ( | ) |
The possible values are 100, 200, 300, 400, 500, 600, 700, 800, or 900, where each number indicates a weight that is at least as dark as its predecessor. A value of 400 indicates a normal weight; 700 indicates bold. Note: The specific interpretation of these values varies from font to font. For example, 300 in one font may appear most similar to 500 in another.
| bool pdftron::PDF::TextExtractor::Style::IsItalic | ( | ) |
| bool pdftron::PDF::TextExtractor::Style::IsSerif | ( | ) |
| void pdftron::PDF::TextExtractor::Style::GetColor | ( | UInt8 | rgb[3] | ) |
| bool pdftron::PDF::TextExtractor::Style::operator== | ( | const Style & | s | ) |
| bool pdftron::PDF::TextExtractor::Style::operator!= | ( | const Style & | s | ) |