添加注释到pdf android

时间:2012-10-25 08:52:42

标签: android

我想在android中显示pdf,因为我有一些像vudroid,pdfreader这样的库但是所有这些库都显示pdf页面作为图像我想实现这样的功能,用户可以查看pdf并从pdf中选择文本更改背景颜色文本使用颜色选择器并保存现有的pdf,我已经介绍了一些库,但他们没有提供这样的功能,请提供一些想法,如果这样的库是可用的

我使用了以下库

Android PDF Viewer
APDFViewer
droidreader

谢谢

1 个答案:

答案 0 :(得分:1)

免责声明:我是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

相关问题