Skip to content

Commit

Permalink
Set pdf viewer option
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Oct 21, 2024
1 parent 0b9706d commit b2c4d7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/documenteditor/embed/js/ApplicationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@ DE.ApplicationController = new(function(){
appOptions.isOForm = !!(type && typeof type[1] === 'string'); // oform and docxf

api.asc_setViewMode(!appOptions.canFillForms);
api.asc_setPdfViewer(!appOptions.canFillForms);

btnSubmit = $('#id-btn-submit');

Expand Down
1 change: 1 addition & 0 deletions apps/documenteditor/mobile/src/controller/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ class MainController extends Component {
applyMode (appOptions) {
this.api.asc_enableKeyEvents(appOptions.isEdit);
this.api.asc_setViewMode(!appOptions.isEdit && !appOptions.isRestrictedEdit);
this.appOptions.isCorePDF && this.api.asc_setPdfViewer(!appOptions.isEdit && !appOptions.isRestrictedEdit);
appOptions.isRestrictedEdit && appOptions.canComments && this.api.asc_setRestriction(Asc.c_oAscRestrictionType.OnlyComments);
appOptions.isRestrictedEdit && appOptions.canFillForms && this.api.asc_setRestriction(Asc.c_oAscRestrictionType.OnlyForms);

Expand Down

0 comments on commit b2c4d7d

Please sign in to comment.