PTOutlineViewController
@interface PTOutlineViewController : UITableViewController <PTOverridable>
The PTOutlineViewController will display a document’s outline (PDF bookmarks) that can be used to
navigate the document in a PTPDFViewCtrl
. When a bookmark is selected, the controller will navigate the
PTPDFViewCtrl
to that page.
-
Returns a new instance of a PTOutlineViewController.
Declaration
Objective-C
- (nonnull instancetype)initWithToolManager: (nonnull PTToolManager *)toolManager;
Swift
convenience init(toolManager: PTToolManager)
Parameters
toolManager
The
PTToolManager
object that provides thePTPDFViewCtrl
andPTPDFDoc
from to create the outline, which will change pages when the user selects an annotation item. -
Returns a new instance of an PTOutlineViewController.
Declaration
Objective-C
- (nonnull instancetype)initWithPDFViewCtrl: (nonnull PTPDFViewCtrl *)pdfViewCtrl;
Swift
init(pdfViewCtrl: PTPDFViewCtrl)
Parameters
pdfViewCtrl
The
PTPDFViewCtrl
object that provides thePTPDFDoc
from which to create the outline, and which will change pages when the user selects an annotation item. -
Whether outlines are considered readonly and cannot be modified or deleted. The default value is
NO
, meaning that outlines can be modified and deleted.Note
ThePTToolManager.readonly
property is also consulted when determing if outlines can be modified or deleted. WhenPTToolManager.readonly
is set toYES
that property takes precedence over this property’s value.Declaration
Objective-C
@property (nonatomic, getter=isReadonly) BOOL readonly;
Swift
var isReadonly: Bool { get set }
-
An object that conforms to the
PTOutlineViewControllerDelegate
protocol.Declaration
Objective-C
@property (nonatomic, weak, nullable) id<PTOutlineViewControllerDelegate> delegate;
Swift
weak var delegate: (any PTOutlineViewControllerDelegate)? { get set }
-
Refresh the contents of the PTOutlineViewController
Declaration
Objective-C
- (void)refresh;
Swift
func refresh()
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithStyle:(UITableViewStyle)style NS_UNAVAILABLE;
-
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;