我想为多个用户在外部保存 PDF 的书签。早些时候,我使用的是 PSPDFKit 5.4,因为它工作正常,目前我使用的是 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];
当我们使用“PSPDFDocumentInfoOptionAnnotations”代替“PSPDFDocumentInfoOptionBookmarks”来保存注释时,这将正常工作,但不适用于书签。
请建议是否有人知道我们如何在外部保存 PSPSDKit 中的书签。