Document preview
E show document or attachment inside page based on MIME type, or offer download.
PDF, spreadsheet, document and archive viewers with compare and highlight features.
lr-document-preview
import '@aceshooting/lyra-ui/components/lr-document-preview.js';Components wey relate
- Document viewer — E show document inside dialog, using renderer registry based on MIME type.
- DOCX viewer — E convert DOCX to safe semantic HTML through mammoth converter.
- E-book viewer — E show EPUB with chapter navigation through optional epub.js peer.
- Email viewer — E read .eml and show headers, safe message body and attachments.
- GeoJSON viewer — E fetch and check GeoJSON, then draw im features on map.
- Highlight layer — Overlay wey draw clickable highlight rectangles on positioned document content.