我想将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外部书签。
发布于 2017-04-21 23:10:14
PSPDFKit软件开发工具包的创始人,适用于iOS、安卓和网络。
我们正在不断改进我们的框架文档,下面是书签指南的预览,它应该会回答你的问题:
https://pspdfkit.com/guides/ios/nightly/miscellaneous/bookmarks/
一旦iOS的CSV6.7发布,它将包含一个将书签数据写入PSPDFKit的示例,作为我们PSPDFCatalog example project的一部分。
如果您在our official support page上联系我们,我们还可以为您提供夜间构建的访问权限,以便您可以立即对其进行测试。
https://stackoverflow.com/questions/43521476
复制相似问题