PTPageCropViewControllerDelegate

@protocol PTPageCropViewControllerDelegate <NSObject>

The PTPageCropViewControllerDelegate protocol allows the adopting class to respond to messages from the PTPageCropViewController class.

  • This method is called when the crop is applied.

    Declaration

    Objective-C

    - (void)pageCropViewController:
                (nonnull PTPageCropViewController *)pageCropViewController
                     applyPageCrop:
                         (nonnull NSMutableDictionary<NSNumber *, PTPDFRect *> *)
                             pageCropRects;

    Swift

    optional func pageCropViewController(_ pageCropViewController: PTPageCropViewController, applyPageCrop pageCropRects: NSMutableDictionary)

    Parameters

    pageCropViewController

    The page crop view controller applying the crop

    pageCropRects

    A dictionary of page numbers and the cropping rects for each page { NSNumber pageNumber : PTPDFRect *rect }