我想为多个用户在外部保存PDF书签。之前,我使用的是PSPDFKit 5.4,因为它工作正常,目前我使用PSPDFKit 6.6,因为它没有保存书签,但对于注释工作正常。如何使用annotationSaveMode = PSPDFAnnotationSaveModeExternalFile书签PSPDFKit 6.6?
__weak typeof (self) weakSelf = self;
document.didCreateDocumentProviderBlock = ^(PSPDFDocumentProvider *documentProvider) {
documentProvider.annotationManager.fileAnnotationProvider.annotationsPath = [documentProvider.document.dataDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@"annotations_%@.pspdfkit", weakSelf.currentUsername]];
};
// This example will only work for external file save mode.
document.annotationSaveMode = PSPDFAnnotationSaveModeExternalFile;
self.documentInfoCoordinator.availableControllerOptions = @[PSPDFDocumentInfoOptionBookmarks];
这将很好地工作,当我们在的地方“PSPDFDocumentInfoOptionBookmarks”的使用“PSPDFDocumentInfoOptionAnnotations”保存批注,但没有作品书签。
请提出建议,如果有人有任何想法我们如何将PSPSDKit书签保存在外部。