-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
导出 PDF 时支持将资源文件作为附件嵌入 #7414
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
Comments
Even in the current implementation with external assets, the links don't resolve correctly with the http://127.0.0.1/.. link in there. It probably need to be changed regardless. |
You're right, but currently we haven't figured out how to point a hyperlink in a PDF to a local file. |
For the external assets at least, I tested with a different pdf generator and the following links resolve correctly |
Can you help to test whether a relative path can be generated? |
After some exploration, we have found a technical solution to change the asset of the http://127.0.0.1 server to a local relative path and link it to the assets folder. For example, when placing pdf and assets on the desktop: When we move the pdf and its assets, the relative path still works fine: |
Finally, we found a way to jump to embedded attachments, and unified improvement in this issue, thank you. |
thank you for the great work on this. |
Thanks for testing, we will fix it later. |
Hello . I recently tried testing this on 2.10.2 and the embedding asset don't seem to be working anymore. |
在什么情况下你需要该特性?In what scenarios do you need this feature?
I work as a software engineer and write a lot of root cause analysis reports. I use siyuan to manage my analysis and it contains a lot of log files and other binary resources.
Currently when I export a pdf , these assets are exported in a separate directory but it makes it very hard to distribute the files.
描述可能的最优解决方案 Describe the optimal solution
It would be great if the PDF export had an option to embed the local assets in the PDF file itself instead of exporting them in a separate directory. It can appear as a icon inside the pdf itself that anyone can open it if needed.
描述候选的解决方案 Describe the candidate solution
Embed Assets (Yes/No)
其他信息 Other information
No response
The text was updated successfully, but these errors were encountered: