PSPDFLibraryPreviewResult


@interface PSPDFLibraryPreviewResult : PSPDFSearchResult

This class is a subclass of PSPDFSearchResult, and encapsulates a preview generated by PSPDFLibrary. Mainly, it prevents access of the annotation property of PSPDFSearchResult, and instead provides an annotationObjectNumber property to represent a matched annotation.

  • The object number for the matched annotation, if that is what the receiver is representing, -1 otherwise.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSInteger annotationObjectNumber;

    Swift

    var annotationObjectNumber: Int { get }
  • Returns YES if the receiver is representing an annotation search result, else NO.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL isAnnotationResult;

    Swift

    var isAnnotationResult: Bool { get }