PDF.js annotation library in pure JavaScript. Create and save PDF annotation, (pdf highlight/underline/signature/screenshot/textbox/draw/polygon)- pdf.js

1-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


2-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;


3-Demonstrate Video


Youtube tutorial video:https://youtu.be/ea_0N89-pm8



4-Demonstrate GIF


① Highlight And Underline: Highlight or underline selection text, support touching, perfectly support old browser, smart phone and mobile device.

② Insert Image: Insert image, for example, signature.


③ Modify Annotation: select annotation to modify position, scaleX, scaleY and rotation。


④ Add Text And Edit: Add textbox, double click to edit the text.


⑤ Modify Property: Select annotation to modify FillColor, BorderColor, BackgroundColor, Opacity and Delete.


⑥ Add And Modify Polygon: Add and modify arrow, rectangle, circle.


⑦ Free Draw And Smooth: Free draw and auto smooth.


⑧ ScreenShot: And screenshot rectangle, modify it and the text. Shot current rectangle area and save as PNG image.


⑨ EditAnnotation: Open annotation list and operate them, goto annotation and flick, copy text, add comments and delete.


⑩ Output And Import Annotations: Output annotations in JSON format, can be saved to database and reload in PDF file. Import annotations from JSON file and show them in PDF.


⑪ Change Tips Language: Change tips language (English/Chinese), you can also add your language.


⑫ Save All Annotations And Download: Save all annotations for all page into PDF file and download.


5-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.

评论

此博客中的热门博文

How to save annotation comments based on pdf.js? Save English/Non-english, all language comments.(PDF Web highlight).

ElasticPDF-new PDF editor library (based on pdf.js Web PDF annotation, highlight/polygon/eraser/history/save annotation text)