Search
-
Represents a single character (glyph, quad) on the PDF page.
Note
Glyphs are created from the PDF contents and not meant to be created manually.Declaration
Objective-C
@interface PSPDFGlyph : NSObject <NSCopying, NSSecureCoding>
Swift
class Glyph : NSObject, NSCopying, NSSecureCoding
-
Defines the position of an image in the PDF.
Note
This class should not be manually instantiated. UsePSPDFTextParser
to fetch images.Declaration
Objective-C
@interface PSPDFImageInfo : NSObject <NSCopying, NSSecureCoding>
Swift
class ImageInfo : NSObject, NSCopying, NSSecureCoding
-
Represents an immutable search result from
See morePSPDFTextSearch
Declaration
Objective-C
@interface PSPDFSearchResult : PSPDFModel
Swift
class SearchResult : ModelObject
-
Represents multiple words forming a text block. (e.g. a Column)
See moreDeclaration
Objective-C
@interface PSPDFTextBlock : NSObject <NSCopying, NSSecureCoding>
Swift
class TextBlock : NSObject, NSCopying, NSSecureCoding
-
Parses text and glyph data of a PDF page.
Note
Do not instantiate this class directly. Instead, use-[PSPDFDocument textParserForPageAtIndex:]
. Properties are evaluated lazily and cached.Declaration
Objective-C
@interface PSPDFTextParser : NSObject <PSPDFOverridable>
Swift
class TextParser : NSObject, Overridable
-
Manages search operations for a specific document. You can copy this class to be able to use it on your custom class. (and set a different delegate) Copying will preserve all settings except the delegate.
See moreDeclaration
Objective-C
@interface PSPDFTextSearch : NSObject <NSCopying, PSPDFOverridable>
Swift
class TextSearch : NSObject, NSCopying, Overridable
-
Represents a word. Formed out of (usually) multiple glyphs.
See moreDeclaration
Objective-C
@interface PSPDFWord : NSObject <NSCopying, NSSecureCoding>
Swift
class Word : NSObject, NSCopying, NSSecureCoding
-
Undocumented
See moreDeclaration
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
-
See moreInlineSearchManager
manages the presentation of a search bar that may be used to find text in aDocument
. The search bar sides down from the top, typically covering the navigation bar.Declaration
Objective-C
@interface PSPDFInlineSearchManager : NSObject <PSPDFOverridable>
Swift
class InlineSearchManager : NSObject, Overridable
-
Highlight view used to show where the search keyword is within the document.
See moreDeclaration
Objective-C
@interface PSPDFSearchHighlightView : UIView <PSPDFAnnotationPresenting, PSPDFOverridable>
Swift
class SearchHighlightView : UIView, AnnotationPresenting, Overridable
-
Manages views added on
See morePDFPageView
.Declaration
Objective-C
@interface PSPDFSearchHighlightViewManager : NSObject <PSPDFOverridable>
Swift
class SearchHighlightViewManager : NSObject, Overridable
-
The search view controller allows text and annotation searching within the current document. It notifies its delegate as results are loaded.
Usually this is presented as a popover, but it also works modally.
See moreDeclaration
Objective-C
@interface PSPDFSearchViewController : PSPDFBaseTableViewController < UISearchDisplayDelegate, UISearchBarDelegate, PSPDFTextSearchDelegate, PSPDFStyleable, PSPDFOverridable>
Swift
class SearchViewController : BaseTableViewController, UISearchDisplayDelegate, UISearchBarDelegate, TextSearchDelegate, Styleable, Overridable