I am facing a problem in my application. I'm using the Office Viewer to view office files, but when the document loads, it appears with its own options bar (for example, to create a copy or turn on accessibility mode). My question is: is it possible to manually edit the styles to hide that options bar? I've tried Google Viewer, but I've noticed that landscape-oriented documents appear incomplete.
This is the part of the code that is used to display the information, which takes up both Google and Office.
private obtenerDocTrans() {
const alfrescoUrl = `${environment.proxyConfig}/alfresco/api/-default-/public/alfresco/versions/1/nodes/${this.nodeId}/content?alf_ticket=${this.token}`;
const encodedUrl = encodeURIComponent(alfrescoUrl);
this.nodoUrl = this.sanitizer.bypassSecurityTrustResourceUrl(
`https://view.officeapps.live.com/op/view.aspx?src=${encodedUrl}&action=embedview`
);
/*this.nodoUrl = this.sanitizer.bypassSecurityTrustResourceUrl(
`https://docs.google.com/viewer?url=${encodedUrl}&embedded=true`,
);*/
this.isFrame = true;
this.isImage = false;
this.isVideo = false;
this.isAudio = false;
this.isNotVisualizable = false;
this.isLoading = false;
}
Tangentially Perpendicular
5,4364 gold badges16 silver badges34 bronze badges
default