✅ Key Features:
🗂️ PDF Upload and Display
Upload any .pdf file from local storage.
Renders all pages of the PDF using PDF.js with scalable canvas for high quality.
✏️ Annotation Tools
Select Tool: Move, resize, and modify existing annotations.
Pencil Tool: Freehand drawing with customizable color.
Text Tool: Add editable text anywhere on the PDF.
Eraser Tool: Remove annotations by clicking/dragging over them.
🎨 Color Picker
Real-time color selection for drawing and text tools.
Preview of current selected color with a stylish circular swatch.
⬇️ Download Annotated PDF
Combines original PDF and annotations into a new PDF.
Uses PDF-lib to embed drawings/text as images onto the corresponding pages.
PDF.js: Renders PDF pages into .
PDF.js
Fabric.js: Enables annotation layers and interaction with canvas objects.
Fabric.js
PDF-lib: Embeds annotations onto the final PDF output.
PDF-lib
Fixed button actives in example block.
BSD-3 license (https://opensource.org/licenses/BSD-3-Clause)