I have figured out the best solution of pdf.js annotation, only use pdf.js dist, and it is very easy to import into your project !
Keywords: pdf.js , annotation , demo , sourcecode , pdf.js-dist , import.
Demo and source code
Demo and source code are in : https://demos.libertynlp.com/#/pdfjs-annotation. I only used the pdf.js-dist, which make this annotaion application could be imported and used very easily in your project.
demo video
Functions
① highlight : highlight selected text;
② underline : underline selected text;
③ output annotations : output annotations for importing;
④ import annotations : import annotations for current file;
⑤ download annotations : download annotations and comments text;
⑥ undo annotations : undo annotations in current page;
⑦ help : open help file;
I have figureed out the best solution of pdf.js annotation using only pdf.js-dist, and I put the live demo in https://demos.libertynlp.com/#/pdfjs-annotation. Waiting for your visiting and using.
About how to import pdf.js-dist, pleae read the related articles.