Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF annotation supports setting associated block ID list #10327

Closed
CSMsamuel opened this issue Feb 6, 2024 · 3 comments
Closed

PDF annotation supports setting associated block ID list #10327

CSMsamuel opened this issue Feb 6, 2024 · 3 comments
Assignees
Milestone

Comments

@CSMsamuel
Copy link

CSMsamuel commented Feb 6, 2024

希望高亮的文本可以聚焦到多个块或者一个超级块

In what scenarios do you need this feature?

image.png

如图所示,我需要在pdf上高亮并做一个注释,但这个注释只能聚焦到一个内容块。这导致了我无法使用行间公式,而如果我需要备注更复杂的内容则无法完成。

image.png

image.png

如果我在聚焦的窗口中打字,再次聚焦依然不能成功

image.png

合并成超级块也是不行的

Describe the optimal solution

方案一

高亮的文本可以聚焦到多个块或者一个超级块,这样高亮文本的浮动窗口才更能发挥其意义。

方案二

高亮文本的注释附着在pdf上,且能够批量导出。

image.png

Describe the candidate solution

No response

Other information

No response

@88250
Copy link
Member

88250 commented Feb 6, 2024

考虑了下,比较可行的方案是在 PDF 标注上加一个菜单/状态:绑定到父块(默认绑定到子块,也就是现在的段落块),这样悬浮这个 PDF 标注的时候就使用父块,即编辑器中 PDF 标注引用元素父块(段落块)的父块,这样就能关联到容器块了,并且不影响现有数据。 @Vanessa219

image

@zxhd863943427
Copy link
Contributor

我建议可以进一步作为一种块属性,可以自由选择绑定到任何的块。

@88250
Copy link
Member

88250 commented Feb 6, 2024

嗯,是个好主意。对 PDF 中的标注添加一个绑定 ID 的列表,这样悬浮时就不调用 getRefIDsByFileAnnotationID 了,而是直接用设置的 IDs 查询。

@88250 88250 added this to the 2.12.8 milestone Feb 7, 2024
@88250 88250 removed their assignment Feb 7, 2024
@88250 88250 changed the title 希望高亮的文本可以聚焦到多个块或者一个超级块 PDF annotation supports setting associated block ID list Feb 7, 2024
Vanessa219 added a commit that referenced this issue Feb 8, 2024
Vanessa219 added a commit that referenced this issue Feb 9, 2024
Vanessa219 added a commit that referenced this issue Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants