PTTextExtractor
@interface PTTextExtractor : NSObject
{
}
- (void)Begin: (PTPage*)page clip_ptr: (PTPDFRect*)clip_ptr flags: (unsigned int)flags;
- (void)SetOCGContext: (PTContext*)ctx;
- (int)GetWordCount;
- (void)SetRightToLeftLanguage: (BOOL)rtl;
- (BOOL)GetRightToLeftLanguage;
- (NSString *)GetAsText: (BOOL)dehyphen;
- (NSString *)GetTextUnderAnnot: (PTAnnot*)annot;
- (NSString *)GetAsXML: (unsigned int)xml_output_flags;
- (PTHighlights*)GetHighlights: (NSArray<PTTextExtractorCharRange *> *)char_ranges;
- (int)GetNumLines;
- (PTTextExtractorLine*)GetFirstLine;
- (instancetype)init;
@end
Undocumented
-
Undocumented
Declaration
Objective-C
- (int)GetWordCount;
Swift
func getWordCount() -> Int32
-
Undocumented
Declaration
Objective-C
- (void)SetRightToLeftLanguage: (BOOL)rtl;
Swift
func setRightToLeftLanguage(_ rtl: Bool)
-
Undocumented
Declaration
Objective-C
- (BOOL)GetRightToLeftLanguage;
Swift
func getRightToLeftLanguage() -> Bool
-
Undocumented
Declaration
Objective-C
- (NSString *)GetAsText: (BOOL)dehyphen;
Swift
func getAsText(_ dehyphen: Bool) -> String!
-
Undocumented
Declaration
Objective-C
- (NSString *)GetAsXML: (unsigned int)xml_output_flags;
Swift
func getAsXML(_ xml_output_flags: UInt32) -> String!
-
Undocumented
Declaration
Objective-C
- (PTHighlights*)GetHighlights: (NSArray<PTTextExtractorCharRange *> *)char_ranges;
Swift
func getHighlights(_ char_ranges: [PTTextExtractorCharRange]!) -> PTHighlights!
-
Undocumented
Declaration
Objective-C
- (int)GetNumLines;
Swift
func getNumLines() -> Int32
-
Undocumented
Declaration
Objective-C
- (PTTextExtractorLine*)GetFirstLine;
Swift
func getFirstLine() -> PTTextExtractorLine!
-
Undocumented
Declaration
Objective-C
- (instancetype)init;
Swift
init!()