From 68f777dbf3c1de921e1803678fc7ed7f5156dc07 Mon Sep 17 00:00:00 2001 From: rakeshkumar1019 Date: Tue, 16 Apr 2024 10:32:26 +0530 Subject: [PATCH] ELEMENTS-1722: preview for Office files in the Attachments --- ui/nuxeo-document-preview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/nuxeo-document-preview.js b/ui/nuxeo-document-preview.js index ac7c1a42b1..8cca57a47e 100644 --- a/ui/nuxeo-document-preview.js +++ b/ui/nuxeo-document-preview.js @@ -147,7 +147,7 @@ import './viewers/nuxeo-video-viewer.js';
@@ -365,7 +365,7 @@ import './viewers/nuxeo-video-viewer.js'; viewUrl = this.document.contextParameters.preview.url; } if (this.xpath !== 'file:content') { - viewUrl = viewUrl.replace('/@preview/', `/@blob/${this.xpath}/@preview/`); + viewUrl = viewUrl.replace('/@preview/', `/@blob/${this.xpath}/@convert?converter=any2pdf&`); } return viewUrl; }