Document Server FAQ:
Expand all
Collapse all
How to embed a document to a web site?
- desktop, which is optimized for the display in desktop computer browsers;
- mobile, which is optimized for the display in mobile device browsers;
- embedded, which is optimized for the embedding the documents into a website page.
You can embed the document with any appearance to your webpage, but it is more logical to use the specific embedded display type with only main controls for the editors displayed for the document within a website page.
That is why the type should be set to embedded and the configuration file will look like this:
Further information about the display type can be found at this page.
The embedded mode allows to display the document with only three control buttons: Download, Share and Embed. You can change the behavior of these buttons the following way:
- editorConfig.embedded.embedUrl is the absolute URL to the document with the type parameter set to embedded in the configuration, which can be used by other users to embed it into their own website page.
- editorConfig.embedded.saveUrl is the absolute URL to the document with the document.permission.download parameter set to true, which can be saved by other users to their own computer in the DOCX, PPTX or XLSX format depending on the file type.
"editorConfig": {
"embedded": {
"embedUrl": "https://example.com/embedded?doc=exampledocument1.docx",
...
},
},
...
Where the example.com is the name of the server where document manager and document storage service are installed. See the section to find out more on Document Server service client-server interactions.
To remove any of these buttons simply do not include the corresponding parameter into the configuration file.
Further information about the embedding parameters can be found at this page.