PTPDFDocumentManagerDelegate
@protocol PTPDFDocumentManagerDelegate <NSObject>
The delegate of a PTPDFDocumentManager
instance.
-
The document manager calls this method when the specified document needs to reload its contents.
Declaration
Objective-C
- (void)documentManager:(nonnull PTPDFDocumentManager *)documentManager documentNeedsReloadContents:(nonnull PTPDFDocumentFile *)document;
Swift
optional func documentManager(_ documentManager: PTPDFDocumentManager, documentNeedsReloadContents document: PTPDFDocumentFile)
Parameters
documentManager
The document manager sending the message.
document
The document that needs to reload its contents.
-
The document manager calls this method when another application has modified the contents of the specified document.
Declaration
Objective-C
- (void)documentManager:(nonnull PTPDFDocumentManager *)documentManager handleExternalChangeToDocument:(nonnull PTPDFDocumentFile *)document withError:(nonnull NSError *)error;
Swift
optional func documentManager(_ documentManager: PTPDFDocumentManager, handleExternalChangeToDocument document: PTPDFDocumentFile, withError error: any Error)
Parameters
documentManager
The document manager sending the message.
document
The document whose contents were modified externally.
-
Undocumented
Declaration
Objective-C
- (void)documentManager:(PTPDFDocumentManager *)documentManager fileForDocument:(PTPDFDocumentFile *)document didMoveToURL:(NSURL *)newFileURL;
Swift
optional func documentManager(_ documentManager: PTPDFDocumentManager, fileForDocument document: PTPDFDocumentFile, didMoveTo newFileURL: URL)