简体   繁体   English

PDF 注释 Java

[英]PDF annotations in Java

Actually, still now I have not got the exact way to add different types of annotation/lines/boxes/highlights using the mouse directly on PDF.实际上,现在我还没有找到直接在 PDF 上使用鼠标添加不同类型的注释/线条/框/突出显示的确切方法。

I have tried different API (pdfbox, icepdf, iText, aspose) and successfully able to add text, text annotation, box annotation, images, but for each one i have some issue like:我尝试了不同的 API(pdfbox,icepdf,iText,aspose)并成功地添加了文本、文本注释、框注释、图像,但是对于每一个我都有一些问题,例如:

  • when i add object, it add in a new page当我添加 object 时,它会添加一个新页面
  • when i add object it remove the old data当我添加 object 它删除旧数据
  • i want use the existing ICEPDF viewer to add text, but it does not allow it.我想使用现有的 ICEPDF 查看器添加文本,但它不允许。 and if i try to mix other API with ICEPDF, then I am not able to get the mouse click position where need to add.如果我尝试将其他 API 与 ICEPDF 混合,那么我无法在需要添加的地方点击鼠标 position。

There is only one API (ICE PDF) which allow to add box annotation direct on GUI by mouse but it does allow other things.只有一个 API (ICE PDF) 允许通过鼠标直接在 GUI 上添加框注释,但它确实允许其他操作。

If not possible in pdf viewer then is there any class which will allow to do this?如果在 pdf 查看器中不可能,那么是否有任何 class 允许这样做?

I'm also open for any commercial library/class with a one time fee to do that.我也对任何商业图书馆/课程开放,只需一次性付费。

I think BFO have added quite a few annotation tools.我认为 BFO 已经添加了很多注释工具。 Have you looked at their tool?你看过他们的工具吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM