I am looking for a PHP/JS library with that would allow my users to:
- view a PDF file
- mark text (selecting)
- mark document fragments (let's say, with a semi-transparent rectangle or circle)
- add annotations (or comments) to the marked fragments
- reply to annotations (or comments)
- save (generate) the modified PDF
What I have
My web application is running on LAMP (PHP 5.3.3). Currently, I am using PDF.js as the PDFs viewer.
Budget
Open source solution that I can implement myself would be perfect. However, I would also consider premium software.
What I'm aware of
I did some research and nowadays the problem is mostly addressed with HTML5 document viewers, like GroupDocs, Prizm Content Connect, Crocodoc, etc. -- Nice software, crazy prices.
Also, there are well-known PHP libraries for generating PDFs, like TCPDF or FPDF. -- Open source, but might not be enough for my needs.
Finally
Do you know any software or library that would help me achieve my goal? Do you know any alternative solution? Maybe there's a way to put all I need together using a PHP-HTML5-JS combo in some way?