1

Is there software, ideally open source that will allow me to visualise a pdf in a web browser and interact with the text?

I want to be able to have a list of words and highlight them in the browser.

The icing on the cake would be if I could also save the 'marked up' pdf.

I wish to have full control over the code and be able to modify or enhance it to suit my requirements.

2 Answers 2

1

Yes, you can use Mozilla's open source library PDF.js. This is what powers Firefox's built-in PDF viewer.

Live demos are available here, with more examples in the Github repository

0

Disclaimer: I am an employee of the vender that distributes the LEADTOOLS SDK.

If you want to consider a commercial product, you could look at the LEADTOOLS Document Viewer for web.

It can load and save different types of documents and can add mark-up to the files and then save them into a separate XML file or on the original document as an overlay.

The Document Viewer has text search functionality that allows you to search through a document for specific text, which can be used alongside the mark-up functionality. This will allow you to highlight specific portions of text within your document. There’s an online demo where you can see all the features here: https://demo.leadtools.com/JavaScript/DocumentViewer/index.html

Here is a screenshot of the mark-up: screenshot of demo

Here is the documentation for the Document Viewer, Annotations, find, and hilite functions, respectively:

https://www.leadtools.com/help/leadtools/v20/dh/javascript/to/using-the-leadtools-document-viewer.html

https://www.leadtools.com/help/leadtools/v20/dh/doxui/documentviewerannotations.html

https://www.leadtools.com/help/leadtools/v20/dh/javascript/doxui/documentviewertext-find.html

https://www.leadtools.com/help/leadtools/v20/dh/ac/annhiliteobject.html

4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.