여러 사용자가 외부에서 PDF 책갈피를 저장하고 싶습니다. 이전 버전에서는 PSPDFKit 5.4를 사용하고 있습니다. 현재 잘 작동하고 있습니다. 현재 PSPDFKit 6.6을 사용하고 있는데 북마크를 저장하지 않지만 주석은 잘 작동합니다. 즐겨 찾기에북마크 PSPDFKit 6.6에 annotationSaveMode = PSPDFAnnotationSaveModeExternalFile을 사용하는 방법?
__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의 북마크를 외부에 저장하는 방법을 알고 계신 분이시기 바랍니다.