diff --git a/src/frontend/app/viewer/document-viewer.component.ts b/src/frontend/app/viewer/document-viewer.component.ts index 69ce664ce00b1742c954b484b6bf2e7dc02bd1cd..606ba19c7ec42f21645679555f6f3f4ebdc0feb3 100755 --- a/src/frontend/app/viewer/document-viewer.component.ts +++ b/src/frontend/app/viewer/document-viewer.component.ts @@ -705,12 +705,12 @@ export class DocumentViewerComponent implements OnInit, OnDestroy { (data: any) => { if (data.encodedDocument) { this.isSigned = this.file.subinfos.signedDocVersions; - const fileToDownload: string = this.file.subinfos.signedDocVersions || this.file.subinfos.commentedDocVersions ? 'content' : 'originalContent'; + const fileToDownload: string = this.file.subinfos.signedDocVersions || this.file.subinfos.commentedDocVersions ? 'originalContent?signedVersion=true&mode=base64' : 'originalContent?mode=base64'; this.file.contentMode = 'route'; this.file.name = `${data.filename}`; this.file.format = data.originalFormat; this.file.signatoryId = data.signatoryId; - this.file.content = `../rest/resources/${resId}/${fileToDownload}?mode=base64`; + this.file.content = `../rest/resources/${resId}/${fileToDownload}`; this.file.contentView = `../rest/resources/${resId}/content?mode=base64`; this.file.src = this.base64ToArrayBuffer(data.encodedDocument); this.loading = false;