PSPDFDocumentProviderDelegate
Objective-C
@protocol PSPDFDocumentProviderDelegate <NSObject>
Swift
protocol DocumentProviderDelegate : NSObjectProtocol
Delegate for writing annotations.
-
Called before we append data to a PDF. Return NO to stop writing annotations. Defaults to YES if not implemented, and will set a new
NSData
object.Declaration
Objective-C
- (BOOL)documentProvider:(nonnull PSPDFDocumentProvider *)documentProvider shouldAppendData:(nonnull NSData *)data;
Swift
optional func documentProvider(_ documentProvider: PSPDFDocumentProvider, shouldAppend data: Data) -> Bool
-
Called after the write is completed.
Declaration
Objective-C
- (void)documentProvider:(nonnull PSPDFDocumentProvider *)documentProvider didAppendData:(nonnull NSData *)data;
Swift
optional func documentProvider(_ documentProvider: PSPDFDocumentProvider, didAppend data: Data)