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.
    See more

    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. Use PSPDFTextParser to fetch images.
    See more

    Declaration

    Objective-C

    
    @interface PSPDFImageInfo : NSObject <NSCopying, NSSecureCoding>

    Swift

    class ImageInfo : NSObject, NSCopying, NSSecureCoding
  • Represents an immutable search result from PSPDFTextSearch

    See more

    Declaration

    Objective-C

    
    @interface PSPDFSearchResult : PSPDFModel

    Swift

    class SearchResult : ModelObject
  • Represents multiple words forming a text block. (e.g. a Column)

    See more

    Declaration

    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.
    See more

    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. Calling copy() on a subclass will return an instance of TextSearch, not the subclass.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFTextSearch : NSObject <NSCopying, PSPDFOverridable>

    Swift

    class TextSearch : NSObject, NSCopying, Overridable
  • Represents a word. Formed out of (usually) multiple glyphs.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFWord : NSObject <NSCopying, NSSecureCoding>

    Swift

    class Word : NSObject, NSCopying, NSSecureCoding
  • Undocumented

    See more

    Declaration

    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
  • InlineSearchManager manages the presentation of a search bar that may be used to find text in a Document. The search bar sides down from the top, typically covering the navigation bar.

    See more

    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 more

    Declaration

    Objective-C

    
    @interface PSPDFSearchHighlightView
        : UIView <PSPDFAnnotationPresenting, PSPDFOverridable>

    Swift

    class SearchHighlightView : UIView, AnnotationPresenting, Overridable
  • Manages views added on PDFPageView.

    See more

    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 more

    Declaration

    Objective-C

    
    @interface PSPDFSearchViewController
        : PSPDFBaseTableViewController <
              UISearchDisplayDelegate, UISearchBarDelegate, PSPDFTextSearchDelegate,
              PSPDFStyleable, PSPDFOverridable>

    Swift

    class SearchViewController : BaseTableViewController, UISearchDisplayDelegate, UISearchBarDelegate, TextSearchDelegate, Styleable, Overridable