← Back to context

Comment by thangalin

5 hours ago

For my hard sci-fi novel, I wanted people to give me feedback by annotating the PDF directly. Since I didn't know what local PDF editors they had available, I decided to vibe-code a web-based PDF annotation editor using PDF.js. (Yes, malicious users could have a field day by guessing the URLs.) It's pretty rough:

https://repo.autonoma.ca/?action=repo&repo=notanexus.git&vie...

Basically, you drop a PDF onto your own web server. The web server serves up PDFs via PDF.js on the client. When the user highlights text to annotate it, the date, time, and text of all annotations in the document are pushed back to the server. As the author, when I reload the same PDF URL, I can add, review, modify, navigate through, or summarize the annotations just like a reader. Here's a screenshot with a funny comment one of my beta readers made:

https://i.ibb.co/5gZMJ0qc/annotations.png

Beta readers wanted, see profile for contact!