diff --git a/src/frontend/app/viewer/document-viewer.component.ts b/src/frontend/app/viewer/document-viewer.component.ts
index 268f1bd479d5a5e1153f482936fdf6894c636a5b..f3e7310e118144593c64e509e2bc7ab80e514c92 100755
--- a/src/frontend/app/viewer/document-viewer.component.ts
+++ b/src/frontend/app/viewer/document-viewer.component.ts
@@ -600,11 +600,12 @@ export class DocumentViewerComponent implements OnInit, OnDestroy {
     downloadConvertedFile() {
         const downloadLink = document.createElement('a');
         if (this.file.contentMode === 'base64') {
+            let fileName: string = '';
             if (this.isSigned) {
-                this.file.name = this.file.name.substring(0, this.file.name.indexOf('_V'));
+                fileName = this.file.name.substring(0, this.file.name.indexOf('_V'));
             }
             downloadLink.href = `data:${this.file.type};base64,${this.file.content}`;
-            downloadLink.setAttribute('download', this.file.name);
+            downloadLink.setAttribute('download', fileName !== '' ? fileName : this.file.name);
             document.body.appendChild(downloadLink);
             downloadLink.click();
         } else {