feat: improve PDF links, pagination, margins, and scroll rendering - #69
Open
BugCreators wants to merge 7 commits into
Open
feat: improve PDF links, pagination, margins, and scroll rendering#69BugCreators wants to merge 7 commits into
BugCreators wants to merge 7 commits into
Conversation
Owner
|
麻烦您将
这三个单独提PR,我先合这些代码 |
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.
Summary
<a>元素生成可点击的 PDF 超链接注解,并支持加密 PDF。Add clickable PDF hyperlink annotations for HTML
<a>elements, including encrypted PDF support.Move fitting images intact to the next page instead of clipping them across pages.
Preserve bold styling by synthesizing bold text when only regular CID fonts are available.
margin和padding自动计算每页 PDF 边距。Derive PDF page margins from the root element's CSS
marginandpadding.Export complete content from scrolled root elements instead of only the visible viewport.
Rebuild the embedded WASM binary and add regression coverage for hyperlinks and image pagination.
Testing
npm testnpm run buildNotes
The snapshot format is updated to version 11 while retaining compatibility with versions 7 through 10.
Verified that generated PDFs contain valid hyperlink annotations and that fitting images move intact to the next page.