PTFileAttachmentHandlerDelegate

@protocol PTFileAttachmentHandlerDelegate <NSObject>

A set of methods that allow a conforming class to be notified about events from a PTFileAttachmentHandler instance.

  • Tells the delegate that the file attachment annotation was successfully exported to the indicated location.

    Declaration

    Objective-C

    - (void)fileAttachmentHandler:
                (nonnull PTFileAttachmentHandler *)fileAttachmentHandler
          didExportFileAttachment:(nonnull PTFileAttachment *)fileAttachment
                       fromPDFDoc:(nonnull PTPDFDoc *)doc
                            toURL:(nonnull NSURL *)exportedURL;

    Parameters

    fileAttachmentHandler

    the file attachment handler that called this method

    fileAttachment

    the file attachment annotation that was exported

    doc

    the PDF document containing the file attachment

    exportedURL

    the URL of the exported file attachment

  • Tells the delegate that the file attachment could not be exported from the PDF document.

    Declaration

    Objective-C

    - (void)fileAttachmentHandler:
                (nonnull PTFileAttachmentHandler *)fileAttachmentHandler
        didFailToExportFileAttachment:(nonnull PTFileAttachment *)fileAttachment
                           fromPDFDoc:(nonnull PTPDFDoc *)doc
                            withError:(nonnull NSError *)error;

    Parameters

    fileAttachmentHandler

    the file attachment handler that called this method

    fileAttachment

    the file attachment to be exported

    doc

    the PDF document containing the file attachment

    error

    an NSError indicating the reason that the file attachment could not be exported.