我想在 android 中显示 pdf,因为我有用户一些库,如 vudroid、pdfreader,但所有这些库都将 pdf 页面显示为图像我想实现这样的功能,用户可以查看 pdf 并从 pdf 中选择文本更改背景颜色使用颜色选择器的文本并保存现有的 pdf,我引用了一些库,但它们不提供此类功能,如果此类库可用,请提供一些想法
我使用了以下库
Android PDF Viewer
APDFViewer
droidreader
谢谢
最佳答案
免责声明:我是 PSPDFKit 团队的开发人员
PSPDFKit for Android最近发布了 2.0 版,包括注释编辑支持。我们花了很多时间让注释编辑变得简单——无论是对于将 PDF 集成到他们的应用程序中的开发人员,还是对于最终用户。以下是如何使用 PSPDFKit 创建 NoteAnnotation 的示例:
PSPDFDocument document = ...
// Create the annotation.
final int pageNum = 3;
final RectF pagePosition = new RectF(10, 10, 30, 30);
final NoteAnnotation annotation = new NoteAnnotation(pageNum, pagePosition, "This is a note with cross icon!", CROSS);
// Attach the annotation to the document.
document.getAnnotationProvider().addAnnotationToPage(annotation);
还有大量用于注释创建和编辑的即用型 UI 组件。 PSPDFKit 是商业产品,但我们提供演示版本,可以是 requested on our website .
关于android - 为pdf android添加注释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13064958/