PSPDFAnnotationSummarizer


@interface PSPDFAnnotationSummarizer : NSObject

Generates an annotation summary.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Initialize the annotation summarizer with a document.

    Note

    Will return nil if document is nil.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDocument:(nonnull PSPDFDocument *)document;

    Swift

    init(document: PSPDFDocument)
  • The attached document.

    Declaration

    Objective-C

    @property (readonly, nonatomic) PSPDFDocument *_Nonnull document;

    Swift

    var document: PSPDFDocument { get }
  • Generates an annotation summary for all pages in the current set document.

    Declaration

    Objective-C

    - (nonnull NSAttributedString *)annotationSummaryForPages:
        (nonnull NSIndexSet *)pages;

    Swift

    func annotationSummary(forPages pages: IndexSet) -> NSAttributedString
  • Generates a .pdf file containing the annotation summary.

    Declaration

    Objective-C

    - (void)temporaryPDFFileURLForPages:(nonnull NSIndexSet *)pages
                        completionBlock:
                            (nonnull void (^)(NSURL *_Nullable,
                                              NSError *_Nullable))completionBlock;

    Swift

    func temporaryPDFFileURL(forPages pages: IndexSet, completionBlock: @escaping (URL?, Error?) -> Void)