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

Remove illegal characters when paste PDF annotation ref #8403

Closed
3 tasks done
chenshinshi opened this issue May 30, 2023 · 2 comments
Closed
3 tasks done

Remove illegal characters when paste PDF annotation ref #8403

chenshinshi opened this issue May 30, 2023 · 2 comments
Assignees
Milestone

Comments

@chenshinshi
Copy link

chenshinshi commented May 30, 2023

对PDF的这一部分选中文字建立批注似乎无法建立锚文本

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

SiYuan_UUOq49Bu47
位置是第五页的最下面的段落中的第二行开始。
适配中第一次复制的文字可以建立锚文本,但第二次第三次复制的部分无法建立。尽管批注是正常的。
pdf文件:
领属结构的语义构成_张伯江-20230530093446-wb9zy5o.pdf

Expected result

希望能解决或解释原因

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.8.10dev4
- Operating System: win
- Browser (if used):

Log file

无需

More information

No response

@chenshinshi
Copy link
Author

才发现不止这一处,对第七页的最后一行
image
建立批注也无法复制建立锚文本。

@88250 88250 changed the title 对PDF的这一部分选中文字建立批注似乎无法建立锚文本 Unable to paste PDF annotation ref May 30, 2023
@Vanessa219
Copy link
Member

主要是由于该 PDF 本身复制的时候会出现换行和终结字符,可在官网 https://mozilla.github.io/pdf.js/web/viewer.html 上传 pdf 后进行复制查看。我们目前只能移除这些字符,想要复制完整的话还需要修改该 PDF 里面的内容。

@Vanessa219 Vanessa219 added this to the 2.8.10 milestone May 31, 2023
Vanessa219 added a commit that referenced this issue May 31, 2023
@Vanessa219 Vanessa219 changed the title Unable to paste PDF annotation ref Remove illegal characters when paste PDF annotation ref May 31, 2023
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

2 participants