0

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;
 }

toolbar that you want to hide

asked Jan 16, 2025 at 4:22

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.