I want to save the bookmark of PDF externally for a multiple users. Earlier, I am using PSPDFKit 5.4 in that it is working fine, currently I am using PSPDFKit 6.6 in that its not saving bookmark but works fine for annotation.
__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];
This will work fine when we use "PSPDFDocumentInfoOptionAnnotations" in place of "PSPDFDocumentInfoOptionBookmarks" for saving annotation, but not works for bookmark.
Please suggest if anyone have any idea how we save Bookmark of in PSPSDKit externally.