PTPageCropViewController
@interface PTPageCropViewController : UIViewController <PTOverridable>
The PTPageCropViewController
displays a control for cropping the pages of a document.
-
Initializes a new
PTPageCropViewController
instance.Declaration
Objective-C
- (nonnull instancetype)initWithPDFViewCtrl: (nonnull PTPDFViewCtrl *)pdfViewCtrl;
Swift
init(pdfViewCtrl: PTPDFViewCtrl)
Parameters
pdfViewCtrl
the
PTPDFViewCtrl
instance that the control will coordinate with -
Initializes a new
PTPageCropViewController
instance.Declaration
Objective-C
- (nonnull instancetype)initWithToolManager: (nonnull PTToolManager *)toolManager;
Swift
convenience init(toolManager: PTToolManager)
Parameters
toolManager
the
PTToolManager
instance that the control will coordinate with -
The
PTPDFViewCtrl
instance that this control coordinates with to receive page-related information.Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) PTPDFViewCtrl *pdfViewCtrl;
Swift
var pdfViewCtrl: PTPDFViewCtrl? { get }
-
The
PTToolManager
instance that this control coordinates with to receive page-related events.Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) PTToolManager *toolManager;
Swift
var toolManager: PTToolManager? { get }
-
Whether should export the document after cropping. Default is
NO
.Declaration
Objective-C
@property (nonatomic) BOOL shouldExport;
Swift
var shouldExport: Bool { get set }
-
The page crop view controller’s delegate object.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<PTPageCropViewControllerDelegate> delegate;
Swift
weak var delegate: (any PTPageCropViewControllerDelegate)? { get set }
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;