Try now
Click the buttons with the format names below to try the main functionality of ONLYOFFICE Document Server. You can open various file types for editing, viewing, co-editing, review or see how the rebranding works. Use the </> buttons to view the corresponding example source code.
Documents | Spreadsheets | Presentations | |
---|---|---|---|
Edit | DOCX</> DOCXF</> DOC</> ODT</> TXT</> | XLSX</> XLS</> ODS</> CSV</> | PPTX</> PPT</> ODP</> |
Co-Edit | DOCX</> | XLSX</> | PPTX</> |
Strict Co-Edit | DOCX</> | XLSX</> | PPTX</> |
Local filter | XLSX</> | ||
Review | DOCX</> | ||
Restricted review | DOCX</> | ||
Filling in forms | OFORM</> | ||
Content control settings restricted | DOCX</> | ||
Comment | DOCX</> | XLSX</> | PPTX</> |
Restricted comment | DOCX</> | ||
View | DOCX</> PDF</> | XLSX</> | PPTX</> |
Rebranding | DOCX</> | XLSX</> | PPTX</> |
Edit on mobile | DOCX</> | XLSX</> | PPTX</> |
View on mobile | DOCX</> | XLSX</> | PPTX</> |
Embedded view | DOCX</> | XLSX</> | PPTX</> |
Open docx for editing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docx",
"key": "E7FAFC9C22A8",
"title": "Example Document Title.docx",
"url": "https://example.com/url-to-example-document.docx"
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open docxf for editing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docxf",
"key": "D05D6A33",
"title": "Example Form Template Title.docxf",
"url": "https://example.com/url-to-example-document.docxf"
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open xlsx for editing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "xlsx",
"key": "53500B46FCA9",
"title": "Example Spreadsheet Title.xlsx",
"url": "https://example.com/url-to-example-spreadsheet.xlsx"
},
"documentType": "cell",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open pptx for editing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "pptx",
"key": "9E2BDFCD1D75",
"title": "Example Presentation Title.pptx",
"url": "https://example.com/url-to-example-presentation.pptx"
},
"documentType": "slide",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open doc for editing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "doc",
"key": "D21889C484E9",
"title": "Example Document Title.doc",
"url": "https://example.com/url-to-example-document.doc"
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open xls for editing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "xls",
"key": "D01A6B57CD96",
"title": "Example Spreadsheet Title.xls",
"url": "https://example.com/url-to-example-spreadsheet.xls"
},
"documentType": "cell",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open ppt for editing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "ppt",
"key": "EEE93333E5F3",
"title": "Example Presentation Title.ppt",
"url": "https://example.com/url-to-example-presentation.ppt"
},
"documentType": "slide",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open odt for editing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "odt",
"key": "B95B853D3B1E",
"title": "Example Document Title.odt",
"url": "https://example.com/url-to-example-document.odt"
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open ods for editing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "ods",
"key": "000C2F39D5A4",
"title": "Example Spreadsheet Title.ods",
"url": "https://example.com/url-to-example-spreadsheet.ods"
},
"documentType": "cell",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open odp for editing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "odp",
"key": "47BAE2E8A54F",
"title": "Example Presentation Title.odp",
"url": "https://example.com/url-to-example-presentation.odp"
},
"documentType": "slide",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open txt for editing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "txt",
"key": "B2D7ACF65806",
"title": "Example Document Title.txt",
"url": "https://example.com/url-to-example-document.txt"
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open csv for editing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "csv",
"key": "B04E56B18519",
"title": "Example Spreadsheet Title.csv",
"url": "https://example.com/url-to-example-spreadsheet.csv"
},
"documentType": "cell",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open pdf for viewing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "pdf",
"key": "9B9F6EFE8937",
"title": "Example Document Title.pdf",
"url": "https://example.com/url-to-example-document.pdf"
},
"documentType": "word",
"editorConfig": {
"mode": "view"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open docx for viewing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docx",
"key": "D24A86BDE9A2",
"title": "Example Document Title.docx",
"url": "https://example.com/url-to-example-document.docx"
},
"documentType": "word",
"editorConfig": {
"mode": "view"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open xlsx for viewing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "xlsx",
"key": "138E9734B413",
"title": "Example Spreadsheet Title.xlsx",
"url": "https://example.com/url-to-example-spreadsheet.xlsx"
},
"documentType": "cell",
"editorConfig": {
"mode": "view"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open pptx for viewing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "pptx",
"key": "37195B2B9BF4",
"title": "Example Presentation Title.pptx",
"url": "https://example.com/url-to-example-presentation.pptx"
},
"documentType": "slide",
"editorConfig": {
"mode": "view"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open docx for co-editing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docx",
"key": "B143195F47A0",
"title": "Example Document Title.docx",
"url": "https://example.com/url-to-example-document.docx"
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"user": {
"id": "78e1e841",
"name": "John Smith"
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docx",
"key": "B143195F47A0",
"title": "Example Document Title.docx",
"url": "https://example.com/url-to-example-document.docx"
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"user": {
"id": "F89d8069ba2b",
"name": "Kate Cage"
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open xlsx for co-editing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "xlsx",
"key": "6FB60FE9E548",
"title": "Example Spreadsheet Title.xlsx",
"url": "https://example.com/url-to-example-spreadsheet.xlsx"
},
"documentType": "cell",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"user": {
"id": "78e1e841",
"name": "John Smith"
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "xlsx",
"key": "6FB60FE9E548",
"title": "Example Spreadsheet Title.xlsx",
"url": "https://example.com/url-to-example-spreadsheet.xlsx"
},
"documentType": "cell",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"user": {
"id": "F89d8069ba2b",
"name": "Kate Cage"
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open pptx for co-editing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "pptx",
"key": "B6C57F1FC447",
"title": "Example Presentation Title.pptx",
"url": "https://example.com/url-to-example-presentation.pptx"
},
"documentType": "slide",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"user": {
"id": "78e1e841",
"name": "John Smith"
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "pptx",
"key": "B6C57F1FC447",
"title": "Example Presentation Title.pptx",
"url": "https://example.com/url-to-example-presentation.pptx"
},
"documentType": "slide",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"user": {
"id": "F89d8069ba2b",
"name": "Kate Cage"
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open docx for co-editing in strict mode
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docx",
"key": "491BD667CABA",
"title": "Example Document Title.docx",
"url": "https://example.com/url-to-example-document.docx"
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"customization": {
"autosave": false
},
"user": {
"id": "78e1e841",
"name": "John Smith"
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docx",
"key": "491BD667CABA",
"title": "Example Document Title.docx",
"url": "https://example.com/url-to-example-document.docx"
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"customization": {
"autosave": false
},
"user": {
"id": "F89d8069ba2b",
"name": "Kate Cage"
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open xlsx for co-editing in strict mode
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "xlsx",
"key": "DB1788E4AF4A",
"title": "Example Spreadsheet Title.xlsx",
"url": "https://example.com/url-to-example-spreadsheet.xlsx"
},
"documentType": "cell",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"customization": {
"autosave": false
},
"user": {
"id": "78e1e841",
"name": "John Smith"
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "xlsx",
"key": "DB1788E4AF4A",
"title": "Example Spreadsheet Title.xlsx",
"url": "https://example.com/url-to-example-spreadsheet.xlsx"
},
"documentType": "cell",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"customization": {
"autosave": false
},
"user": {
"id": "F89d8069ba2b",
"name": "Kate Cage"
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open pptx for co-editing in strict mode
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "pptx",
"key": "5664FFF42E4E",
"title": "Example Presentation Title.pptx",
"url": "https://example.com/url-to-example-presentation.pptx"
},
"documentType": "slide",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"customization": {
"autosave": false
},
"user": {
"id": "78e1e841",
"name": "John Smith"
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "pptx",
"key": "5664FFF42E4E",
"title": "Example Presentation Title.pptx",
"url": "https://example.com/url-to-example-presentation.pptx"
},
"documentType": "slide",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"customization": {
"autosave": false
},
"user": {
"id": "F89d8069ba2b",
"name": "Kate Cage"
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open docx with rebranding
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docx",
"key": "D97815D69205",
"title": "Example Document Title.docx",
"url": "https://example.com/url-to-example-document.docx"
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"customization": {
"customer": {
"address": "My City, 123a-45",
"info": "Some additional information",
"logo": "https://example.com/logo-big.png",
"mail": "john@example.com",
"name": "John Smith and Co.",
"www": "example.com"
},
"logo": {
"image": "https://example.com/logo.png",
"url": "https://example.com"
}
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open xlsx with rebranding
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "xlsx",
"key": "6CDE57CAF31F",
"title": "Example Spreadsheet Title.xlsx",
"url": "https://example.com/url-to-example-spreadsheet.xlsx"
},
"documentType": "cell",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"customization": {
"customer": {
"address": "My City, 123a-45",
"info": "Some additional information",
"logo": "https://example.com/logo-big.png",
"mail": "john@example.com",
"name": "John Smith and Co.",
"www": "example.com"
},
"logo": {
"image": "https://example.com/logo.png",
"url": "https://example.com"
}
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open pptx with rebranding
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "pptx",
"key": "E9B24523F469",
"title": "Example Presentation Title.pptx",
"url": "https://example.com/url-to-example-presentation.pptx"
},
"documentType": "slide",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"customization": {
"customer": {
"address": "My City, 123a-45",
"info": "Some additional information",
"logo": "https://example.com/logo-big.png",
"mail": "john@example.com",
"name": "John Smith and Co.",
"www": "example.com"
},
"logo": {
"image": "https://example.com/logo.png",
"url": "https://example.com"
}
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open docx for review
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docx",
"key": "9B5D4A67A9A9",
"title": "Example Document Title.docx",
"url": "https://example.com/url-to-example-document.docx",
"permissions": {
"edit": false,
"review": true
}
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"mode": "edit"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open docx for restricted review
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docx",
"key": "CE661B77",
"title": "Example Document Title.docx",
"url": "https://example.com/url-to-example-document.docx",
"permissions": {
"edit": true,
"review": true,
"reviewGroups": [ "Group2", "" ]
}
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"mode": "edit"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open oform for filling in forms
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "oform",
"key": "DEEC57D9",
"title": "Example Form Title.oform",
"url": "https://example.com/url-to-example-document.oform",
"permissions": {
"edit": false,
"fillForms": true
}
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"mode": "edit"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open docx for commenting
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docx",
"key": "5C5D4CCA7674",
"title": "Example Document Title.docx",
"url": "https://example.com/url-to-example-document.docx",
"permissions": {
"comment": true,
"edit": false
}
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"mode": "edit"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open xlsx for commenting
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "xlsx",
"key": "B62D0C4B9C09",
"title": "Example Spreadsheet Title.xlsx",
"url": "https://example.com/url-to-example-spreadsheet.xlsx",
"permissions": {
"comment": true,
"edit": false
}
},
"documentType": "cell",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"mode": "edit"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open pptx for commenting
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "pptx",
"key": "DA7CC0B9",
"title": "Example Presentation Title.pptx",
"url": "https://example.com/url-to-example-presentation.pptx",
"permissions": {
"comment": true,
"edit": false
}
},
"documentType": "slide",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"mode": "edit"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open docx for restricted commenting
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docx",
"key": "CEEC2F6D",
"title": "Example Document Title.docx",
"url": "https://example.com/url-to-example-document.docx",
"permissions": {
"comment": true,
"commentGroups": [
"edit": ["Group2", ""],
"remove": ["Group2"],
"view": ""
],
"edit": false
}
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"mode": "edit"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open xlsx without access to change the filter
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "xlsx",
"key": "B0823482653D",
"title": "Example Spreadsheet Title.xlsx",
"url": "https://example.com/url-to-example-spreadsheet.xlsx",
"permissions": {
"edit": true,
"modifyFilter": false
}
},
"documentType": "cell",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"user": {
"id": "78e1e841",
"name": "John Smith"
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "xlsx",
"key": "B0823482653D",
"title": "Example Spreadsheet Title.xlsx",
"url": "https://example.com/url-to-example-spreadsheet.xlsx",
"permissions": {
"edit": true,
"modifyFilter": false
}
},
"documentType": "cell",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"user": {
"id": "F89d8069ba2b",
"name": "Kate Cage"
}
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open docx without access to the content control settings
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docx",
"key": "779591724609",
"title": "Example Document Title.docx",
"url": "https://example.com/url-to-example-document.docx",
"permissions": {
"edit": true,
"modifyContentControl": false
}
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"mode": "edit"
},
"height": "100%",
"width": "100%"
});
</script>
</body>
</html>
Open DOCX file for editing on mobile
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docx",
"key": "16CD6FB5",
"title": "Example Document Title.docx",
"url": "https://example.com/url-to-example-document.docx"
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
},
"height": "100%",
"type": "mobile",
"width": "100%"
});
</script>
</body>
</html>
Open XLSX file for editing on mobile
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "xlsx",
"key": "1259E255",
"title": "Example Spreadsheet Title.docx",
"url": "https://example.com/url-to-example-document.xlsx"
},
"documentType": "cell",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
},
"height": "100%",
"type": "mobile",
"width": "100%"
});
</script>
</body>
</html>
Open PPTX file for editing on mobile
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "pptx",
"key": "0CA91EC8",
"title": "Example Presentation Title.docx",
"url": "https://example.com/url-to-example-document.pptx"
},
"documentType": "slide",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
},
"height": "100%",
"type": "mobile",
"width": "100%"
});
</script>
</body>
</html>
Open DOCX file for viewing on mobile
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docx",
"key": "EFF21C3C",
"title": "Example Document Title.docx",
"url": "https://example.com/url-to-example-document.docx"
},
"documentType": "word",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"mode": "view"
},
"height": "100%",
"type": "mobile",
"width": "100%"
});
</script>
</body>
</html>
Open XLSX file for viewing on mobile
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "xlsx",
"key": "ECDAF251",
"title": "Example Spreadsheet Title.docx",
"url": "https://example.com/url-to-example-document.xlsx"
},
"documentType": "cell",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"mode": "view"
},
"height": "100%",
"type": "mobile",
"width": "100%"
});
</script>
</body>
</html>
Open PPTX file for viewing on mobile
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "pptx",
"key": "7F789833",
"title": "Example Presentation Title.docx",
"url": "https://example.com/url-to-example-document.pptx"
},
"documentType": "slide",
"editorConfig": {
"callbackUrl": "https://example.com/url-to-callback.ashx",
"mode": "view"
},
"height": "100%",
"type": "mobile",
"width": "100%"
});
</script>
</body>
</html>
Open DOCX file for embedded viewing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "docx",
"key": "B949CB79",
"title": "Example Document Title.docx",
"url": "https://example.com/url-to-example-document.docx"
},
"documentType": "word",
"height": "100%",
"type": "embedded",
"width": "100%"
});
</script>
</body>
</html>
Open XLSX file for embedded viewing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "xlsx",
"key": "9CB47328",
"title": "Example Spreadsheet Title.docx",
"url": "https://example.com/url-to-example-document.xlsx"
},
"documentType": "cell",
"height": "100%",
"type": "embedded",
"width": "100%"
});
</script>
</body>
</html>
Open PPTX file for embedded viewing
<!DOCTYPE html>
<html style="height: 100%;">
<head>
<title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;">
<div id="placeholder" style="height: 100%"></div>
<script type="text/javascript" src="https://documentserver/web-apps/apps/api/documents/api.js"></script>
<script type="text/javascript">
window.docEditor = new DocsAPI.DocEditor("placeholder",
{
"document": {
"fileType": "pptx",
"key": "1CA69995",
"title": "Example Presentation Title.docx",
"url": "https://example.com/url-to-example-document.pptx"
},
"documentType": "slide",
"height": "100%",
"type": "embedded",
"width": "100%"
});
</script>
</body>
</html>
Copy code Close
×