Repository navigation
Release v2.3.1 of @angelbot-ai-pvt-ltd/teamsync-pdf-viewer.
Features (from 2.3.0)
- Added
WebViewerOptions.allowPrintandallowDownload(defaulttrue): when set tofalse, disables Print, Download, and Save As in the menu, hides filled form export, and guardsaction-print/action-downloadbus actions (includinginstance.print()).
Security Hardening & Dependency Upgrades (2.3.1)
- Replaced template-string XML wrapping in
parseXfdf()andparseXfdfFormFields()withparseXfdfDocument()andsplitTopLevelXmlElements()usingDOMParser(..., 'application/xml')anddocument.implementation.createDocument/importNode, eliminating HTML/XML string interpolation while preserving DTD/ENTITY rejection. - Upgraded
pdfjs-dist(6.5.438),lucide-react(1.80.0),vite(8.3.8),vitest(5.1.1),@vitejs/plugin-react(6.3.0),oxlint(1.95.0),jsdom(31.0.1),@types/node, and@types/react.