> 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
