PSPDFGlyphSequence
Objective-C
@interface PSPDFGlyphSequence : NSObject<NSCopying, NSSecureCoding>
PSPDF_EMPTY_INIT_UNAVAILABLE
/// Initialize a sequence of glyphs with the given array of glyphs.
///
/// - Parameters:
/// - glyphs: A non-empty array of glyphs. This initializer will return
/// `nil` if this array is empty.
- (nullable instancetype)initWithGlyphs:(NSArray<PSPDFGlyph *> *)glyphs;
/// The non-empty array of glyphs in this sequence.
@property (nonatomic, readonly, copy) NSArray<PSPDFGlyph *> *glyphs;
/// The range of glyphs in this sequence.
@property (nonatomic, readonly) NSRange range NS_REFINED_FOR_SWIFT;
/// The text that the glyphs in this sequence represent.
@property (nonatomic, readonly) NSString *text;
/// The bounding box that tightly encloses the glyphs in this sequence. This
/// rect is in the PDF coordinate space.
@property (nonatomic, readonly) CGRect boundingBox;
@end
Swift
class GlyphSequence : NSObject, NSCopying, NSSecureCoding
Undocumented
-
Unavailable
Not the designated initializer
Undocumented
Declaration
Objective-C
PSPDF_EMPTY_INIT_UNAVAILABLE
-
Unavailable
Not the designated initializer
Undocumented
Declaration
Objective-C
PSPDF_EMPTY_INIT_UNAVAILABLE
-
Initialize a sequence of glyphs with the given array of glyphs.
Declaration
Objective-C
- (nullable instancetype)initWithGlyphs:(nonnull NSArray<PSPDFGlyph *> *)glyphs;
Swift
init?(glyphs: [PSPDFGlyph])
-
The non-empty array of glyphs in this sequence.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSArray<PSPDFGlyph *> *_Nonnull glyphs;
Swift
var glyphs: [PSPDFGlyph] { get }
-
The range of glyphs in this sequence.
Declaration
Objective-C
@property (nonatomic, readonly) NSRange range;
-
The text that the glyphs in this sequence represent.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull text;
Swift
var text: String { get }
-
The bounding box that tightly encloses the glyphs in this sequence. This rect is in the PDF coordinate space.
Declaration
Objective-C
@property (nonatomic, readonly) CGRect boundingBox;
Swift
var boundingBox: CGRect { get }
-
The range of glyphs in this glyphs collection.
Declaration
Swift
public var range: Range<Int> { get }