Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we provide fancy highlight/commenting feature like in Acrobat PDF Reader in Mozilla PDF.js #10804

ganesh24dec opened this issue May 10, 2019 · 3 comments


Copy link

commented May 10, 2019

Attach (recommended) or Link to PDF file here:



  • Web browser and its version: All
  • Operating system and its version: Windows
  • PDF.js version: 2.0.385
  • Is a browser extension:

Steps to reproduce the problem:

What is the expected behavior? (add screenshot)

As of now we are able to highlight the text in PDF using PDF.js library, but can we able to provide fancy highlighting/commenting features like strike out, call out text, drawing pen, multi line highlighter in the Mozilla PDF.js?

Please find the attached sample PDF.

What went wrong? (add screenshot)

Link to a viewer (if hosted on a site other than or as Firefox/Chrome extension):


This comment has been minimized.


This comment has been minimized.

Copy link

commented May 10, 2019

@Snuffleupagus : We are not going to edit the PDF direct on the viewer, we are just creating an overlay on top of PDF and just using the co-ordinates we are showing the highlights, so I need to know can we use any other selections (Strike through, rectangle ) other than mouse selection


This comment has been minimized.

Copy link

commented May 10, 2019

PDF.js supports rendering these annotations, but not adding/editing them. If you want that, it should be possible to implement this, but it's out of scope for the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.