diff --git a/ui/nuxeo-document-preview.js b/ui/nuxeo-document-preview.js
index ac7c1a42b..a254e171f 100644
--- a/ui/nuxeo-document-preview.js
+++ b/ui/nuxeo-document-preview.js
@@ -146,10 +146,14 @@ import './viewers/nuxeo-video-viewer.js';
-
+
+
+
+
+
`;
}
@@ -364,7 +368,9 @@ import './viewers/nuxeo-video-viewer.js';
if (!viewUrl) {
viewUrl = this.document.contextParameters.preview.url;
}
- if (this.xpath !== 'file:content') {
+ if (this.xpath !== 'file:content' && this._blob['mime-type'] !== 'application/zip') {
+ viewUrl = viewUrl.replace('/@preview/', `/@blob/${this.xpath}/@convert?converter=any2pdf&`);
+ } else {
viewUrl = viewUrl.replace('/@preview/', `/@blob/${this.xpath}/@preview/`);
}
return viewUrl;