> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/web/collaboration/realtime-collaboration.md).

# Collaborate on PDFs and DOCX using JavaScript with WebViewer

Collaborate on PDFs and DOCX using JavaScript Viewer. Enable commenting, user roles, and real-time collaboration with WebViewer's document collaboration library. Export/import annotations easily and s

WebViewer provides out-of-the-box commenting, ability to setup user roles and permissions, ability to mention or tag users in conversation on all document formats including PDFs, Office (DOCX, XLSX, PPTX), images, videos, and other [formats](/web/what-is-webviewer/file-format-support.md).

<a href="https://showcase.apryse.com/document-collaboration" class="button primary">Lauch demo</a><a href="/web/collaboration/basics.md" class="button primary">Learn more</a>

## Samples

* [Realtime collaboration using SQLite](https://github.com/ApryseSDK/webviewer-realtime-collaboration-sqlite3-sample)
* [Realtime collaboration using Firebase](/web/get-started/samples/realtime-collaboration.md)

## Blogs

* [How to Set Up Instant Commenting for Real-Time Document Collaboration in React Applications](https://apryse.com/blog/react-instant-commenting-webviewer-sdk)
* [Success Story: How Uniscope used Apryse to Power Collaboration on Aviation Manuals](https://apryse.com/blog/customers/how-pdftron-powers-collaboration-for-uniscope)

## Next steps

[Collaboration basics](/web/collaboration/basics.md) Learn the basic concepts of implementing collaboration in your workflow

[Setup WebViewer for collaboration](/web/collaboration/realtime-collaboration-setup.md) To setup WebViewer to manage a server and client realtime collaboration.

[Realtime collaboration server](/web/collaboration/realtime-collaboration-server.md) To setup a database server to trigger events for create/modify/delete operations.

[Realtime collaboration client](/web/collaboration/realtime-collaboration-client.md) To setup a client application to listen or trigger events for create/modify/delete operations.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.apryse.com/web/collaboration/realtime-collaboration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
