DEV Community

Cover image for PDF.js annotation library in pure JavaScript. Create and save PDF annotation, (pdf highlight/signature)- pdf.js
Chaoxu Wei
Chaoxu Wei

Posted on

1

PDF.js annotation library in pure JavaScript. Create and save PDF annotation, (pdf highlight/signature)- pdf.js

Demo and Source code

Demo and source code: https://demos.libertynlp.com
the best solution of pdf.js annotation, only use pdf.js-dist, support old browser, smart phone and mobile device, very easy to import into your project.
Image description

Function

① download : save pdf with annotations mark
② highlight : highlight selected text;
③ underline : underline selected text;
④ screenshot: screenshot pdf save as png;
⑤ polygon: add textbox/arrow/rectangle/circle;
⑥ free draw: free draw and auto smooth;
⑦ image: insert image (forexample signature);
⑧ edit: edit annotation ( copy/delete/add comment/navigate );
⑨ output annotations : output annotations for importing;
⑩ import annotations : import annotations for current file;
⑪ download txt : download annotations and comments text;
⑫ clear: clear one/page/file annotation;
⑬ undo annotations : undo annotations in current page;
⑭ help : open help file;

Demonstrate Video

Youtube tutorial video:

Summarize

I have figureed out the best solution of pdf.js annotation using only pdf.js-dist, and I put the live demo and source code in https://demos.libertynlp.com

Waiting for your visiting and using.

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay