extern const NSNotificationName _Nonnull PTPDFViewCtrlWillSetDocNotification

Posted by a PTPDFViewCtrl instance before it sets the current document with the -[PTPDFViewCtrl SetDoc:] method.

The current document, which will be closed, can be retrieved with the -[PTPDFViewCtrl GetDoc] method.

The notification object is the PTPDFViewCtrl instance that posted the notification. The userInfo dictionary contains an entry for the PTPDFViewCtrlPDFDocUserInfoKey key that corresponds to the PTPDFDoc instance that will be set as the current document.