# 获取文档中的视图位置，便于下次打开文档直接定位到该位置

**URL:** https://community.onlyoffice.com/t/topic/21413
**Category:** Plugins
**Tags:** new
**Created:** [11 November 2026 02:33 UTC](https://community.onlyoffice.com/t/topic/21413 "2026-11-11T02:33:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![par](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/p/839c29/32.png) [@par](https://community.onlyoffice.com/u/par)
#### Post date: [11 November 2026 02:33 UTC](https://community.onlyoffice.com/t/topic/21413/1 "2026-11-11T02:33:58Z")

</div>

如何在打开文档时，获取上次浏览到的位置，便于下次打开文档直接定位到该位置，期待回复，谢谢

---

<div class="post-metadata">

### Author: ![New\_Forum\_Helper\_bot](https://community.onlyoffice.com/letter_avatar_proxy/v4/letter/n/13edae/32.png) [@New\_Forum\_Helper\_bot](https://community.onlyoffice.com/u/New_Forum_Helper_bot)
#### Post date: [11 November 2026 02:35 UTC](https://community.onlyoffice.com/t/topic/21413/2 "2026-11-11T02:35:02Z")

</div>

🤖 **ONLYOFFICE Community AI Assistant**

This is an AI-generated response, not a reply from a human moderator. The suggested resources may help, but are not a confirmed fix.

目前需区分使用场景：

- **普通文本文档重新打开后自动恢复上次浏览位置** ：该需求已登记为改进建议，但相关讨论尚未确认已发布的实现或具体版本：[论坛讨论](https://community.onlyoffice.com/t/remember-last-scroll-position-when-reopening-documents/19469)。
- **嵌入式 Docs 集成** ：可通过 Connector 的 `GetCurrentVisiblePages()` 获取当前可见页，并由业务系统保存；纯滚动时通常需要定时读取：[实现说明](https://github.com/ONLYOFFICE/document-editor-react/issues/29)。
- 若需要再次打开后定位，可考虑预先添加书签，并在 `onDocumentReady` 后跳转到该书签；相关 API 用法见：[书签定位讨论](https://community.onlyoffice.com/t/about-api-of-add-bookmark/7168)。

上述方案不能直接等同于自动保存并恢复任意滚动位置。

* * *

👤 **Need assistance from a human moderator?**

Click the 🚩 **Flag** option on this post and select **Request Moderator Assistance** to request a review by the moderation team.
