Open
Conversation
Contributor
Author
|
canvas-editor/pdf.html 是一个 demo 功能, 选中所有文本,设置字体为华文访宋(jspdf 需要自己处理字体问题),按 ctrl + s 可以预览 pdf |
Contributor
Author
|
@Hufe921 有兴趣合并这个吗 |
3bbe44b to
2496c30
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
希望作者可以考虑合并导出pdf功能。
虽然pdf可以通过很多方式导出,但通过编辑器本身导出,可以导出一个可以选择文字的pdf文件。一些场景会用到这样的功能。
另外,这省去了使用者对导出pdf工具的选择困难。
我在实现功能时,尽量保证原有代码不受影响,但依然没有把握一点没有影响到原有的 canvs 画图,希望您见谅。