# Realtime collaboration logic in the guide

**URL:** <https://pdfjs.community/t/realtime-collaboration-logic-in-the-guide/674>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [March 31, 2021, 6:05pm UTC](https://pdfjs.community/t/realtime-collaboration-logic-in-the-guide/674 "2021-03-31T18:05:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [April 5, 2021, 2:42pm UTC](https://pdfjs.community/t/realtime-collaboration-logic-in-the-guide/674/3 "2021-04-05T14:42:22Z")

</div>

Hey there,

`exportAnnotCommand` and `exportAnnotations` can both be used in this situation. `exportAnnotCommand` exports the entire annotation, and not just the changes since last time. The only difference is that the exported format is a bit different.

I would recommend using `exportAnnotations` since its better to store raw XFDF in your database (since it is the PDF spec).

Thanks for pointing this out! I will update that guide to use the recommended approach.

Logan

---

_[View the full topic](https://pdfjs.community/t/realtime-collaboration-logic-in-the-guide/674)._
