feat(viewer): preview word documents (.docx/.doc/.odt/.rtf) as PDF
Nightly Build / build (push) Canceled after 10m54s
Nightly Build / build (push) Canceled after 10m54s
The file viewer converts word-processor documents to PDF server-side via LibreOffice (skald_core::docx::DocxConverter), mirroring the LaTeX pipeline but content-hash cached: the format is self-contained, so there is no dependency graph and the file watcher needs no expansion. Container-only documents are shuttled out and converted on the host. With no LibreOffice installed the viewer says so and falls back to download-only. Downloads still save the original document, not the preview PDF.
This commit is contained in:
@@ -1049,6 +1049,7 @@ export default {
|
||||
'fv.mode_source': 'Show source',
|
||||
'fv.binary_unavailable': 'Preview not available for this file type.',
|
||||
'fv.latex_failed': 'LaTeX compilation failed — showing source instead',
|
||||
'fv.docx_failed': 'Document conversion failed',
|
||||
'fv.tab_view': 'View',
|
||||
'fv.tab_edit': 'Edit',
|
||||
'fv.dirty_badge': 'Unsaved changes',
|
||||
|
||||
@@ -1036,6 +1036,7 @@ export default {
|
||||
'fv.mode_source': 'Afficher la source',
|
||||
'fv.binary_unavailable': 'Aperçu non disponible pour ce type de fichier.',
|
||||
'fv.latex_failed': 'Échec de la compilation LaTeX — affichage de la source à la place',
|
||||
'fv.docx_failed': 'Échec de la conversion du document',
|
||||
'fv.tab_view': 'Afficher',
|
||||
'fv.tab_edit': 'Modifier',
|
||||
'fv.dirty_badge': 'Modifications non enregistrées',
|
||||
|
||||
@@ -1036,6 +1036,7 @@ export default {
|
||||
'fv.mode_source': 'Mostra sorgente',
|
||||
'fv.binary_unavailable': 'Anteprima non disponibile per questo tipo di file.',
|
||||
'fv.latex_failed': 'Compilazione LaTeX fallita — mostra il sorgente',
|
||||
'fv.docx_failed': 'Conversione del documento non riuscita',
|
||||
'fv.tab_view': 'Visualizza',
|
||||
'fv.tab_edit': 'Modifica',
|
||||
'fv.dirty_badge': 'Modifiche non salvate',
|
||||
|
||||
Reference in New Issue
Block a user