Skip to content

Commit

Permalink
ELEMENTS-1722: preview for Office files in the Attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshkumar1019 committed Apr 16, 2024
1 parent ee09dbc commit 68f777d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/nuxeo-document-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ import './viewers/nuxeo-video-viewer.js';
</template>
<template mime-pattern=".*">
<object id="frame" data="[[_computeObjectSource(_blob)]]"></object>
<nuxeo-pdf-viewer src="[[_computeObjectSource(_blob)]]"></nuxeo-pdf-viewer>
</template>
<div id="preview"></div>
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 68f777d

Please sign in to comment.