PSPDFProcessorDelegate

Objective-C

@protocol PSPDFProcessorDelegate <NSObject>

Swift

protocol ProcessorDelegate : NSObjectProtocol

The type implementing this protocol can receive updates from a PSPDFProcessor.

  • Notifies the delegate that a page has completed processing.

    Declaration

    Objective-C

    - (void)processor:(nonnull PSPDFProcessor *)processor
        didProcessPage:(NSUInteger)currentPage
            totalPages:(NSUInteger)totalPages;

    Swift

    optional func processor(_ processor: PSPDFProcessor, didProcessPage currentPage: UInt, totalPages: UInt)

    Parameters

    processor

    The PSPDFProcessor instance that’s notifying the delegate.

    currentPage

    An unsigned integer representing the page that just completed processing.

    totalPages

    The total number of pages that the PSPDFProcessor needs to process.

  • Notifies the delegate that a request to cancel documents currently being processed has been received.

    Note

    This method being called does not necesarily mean that the processing itself has stopped altogether, but that the cancellation has been requested and will happen sometime in the future.

    Declaration

    Objective-C

    - (void)processorCancelled:(nonnull PSPDFProcessor *)processor;

    Swift

    optional func processorCancelled(_ processor: PSPDFProcessor)

    Parameters

    processor

    The PSPDFProcessor instance.