I would like to build my own pdf-reader in Java and would like to have the possibility to highlight words in the pdf and save these highlights.
-
I have seen there exist several PDF libraries I can use, but I wonder which would be best to use for this purpose.
-
Is it possible to do this kind of highlighting, and is there a specific library or so to help me do this?
Any help is greatly appreciated!
Here you have a big list of Open Source pdf libraries for java. I haven’t used any of them but I’ll bet for pdfBox that’s part of Apache Foundation. It has a specific class to highlight PDFs in xml but I think you also have to rebuid them.