Modified the CSS for the PDF viewer to set the --csstools-color-scheme--light variable to 'initial' in multiple places, ensuring consistent styling across dark mode and improving compatibility with color scheme preferences.
Deleted outdated handwriting font definitions from viewer.css and removed associated options from viewer.html and viewer.mjs. This streamlines the font selection process for typed signatures, focusing on standard fonts.
Replaced outdated font options in viewer.css and viewer.html with new standard fonts (Sacramento, AlexBrush, Allura, Handlee). Updated viewer.mjs to support the new fonts in signature type controls, enhancing customization for typed signatures.
Deleted outdated debugger CSS and MJS files to streamline the viewer's codebase. Introduced new standard font files (AlexBrush, Allura, Handlee, Kalam, Sacramento) to enhance text rendering options in the PDF viewer.
The clone method in DrawingOptions was previously unimplemented, now it properly creates a copy. Also removed unnecessary signature mode initialization in sign-pdf.ts as it's handled elsewhere.
feat(stamps): implement new add stamps tool with image stamp support
fix(form-filler): improve form filler UI and XFA form support
refactor(sign-pdf): improve signature tool initialization and error handling
style(ui): update text color for better visibility in dark mode
chore: update navigation links to use root-relative paths
Use original file bytes instead of saved PDF doc to preserve XFA streams. This ensures PDF.js can fully render XFA-based forms by also enabling the XFA flag in the viewer.
Add initial set of PDF.js viewer files including:
- WASM binaries for PDF rendering
- Standard fonts and CMAP files for text rendering
- UI icons and SVG assets for toolbar buttons
- TypeScript declaration files
- Loading animation GIF
- Annotation icons and UI elements
This provides the base functionality for the PDF viewer including:
- Document rendering
- Navigation controls
- Zoom functionality
- Page display options
- Annotation tools
- Document properties