Learn how to use, customize, and programmatically manage annotations in TeamSync PDF Viewer.
- Freehand Ink (
brush): Smooth stroke drawing with stroke width and color customization. - Text Highlighting (
highlight): Translucent markup over text selections. - Geometric Shapes: Rectangles, ellipses, straight lines, and arrows.
- Callouts & Sticky Notes: Directional pointer text callouts and movable note boxes.
- Interactive Hyperlinks: Internal page jumps (
#page=3) and external web URLs (https://...).
<DocumentViewer
initialDoc="/document.pdf"
onAnnotationsChange={(annotations) => {
console.log('Updated annotations count:', annotations.length);
}}
/>