Skip to content

Upgrade PDF export to high-resolution vector PDF - #14

Merged
b451c merged 1 commit into
b451c:mainfrom
weiykong:feature/vector-pdf-export
Jul 27, 2026
Merged

Upgrade PDF export to high-resolution vector PDF#14
b451c merged 1 commit into
b451c:mainfrom
weiykong:feature/vector-pdf-export

Conversation

@weiykong

Copy link
Copy Markdown
Contributor

Replaced rasterized CGImage PDF drawing with native ImageRenderer vector PDF drawing. This enables sharp, infinite-resolution (SVG-quality) PDF outputs with fully selectable and searchable text, while preserving proper pagination/slicing for blocks spanning across multiple pages.

b451c added a commit that referenced this pull request Jul 27, 2026
…rds (PR #14 leftover), document ⌘0 in README shortcuts
@b451c
b451c merged commit 6d8a200 into b451c:main Jul 27, 2026
@b451c

b451c commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Merged - thank you, this is a genuinely valuable upgrade!

I verified the output on a fixture with a ~120-line code block spanning multiple pages: 4 pages, fully selectable and searchable text, fonts embedded as subsets, every line present and in order across page breaks, and the file came out smaller than the old rasterized output (25 KB). The clip/translate math for slicing oversized blocks checks out, and behavior at page boundaries matches the previous renderer.

One note: the PR also wrapped two #Preview blocks in #if !STRIP_PREVIEWS guards - that flag is not defined anywhere in this project, so I removed those two hunks in a small cleanup commit on main right after the merge (cd85005). No behavior change either way, just keeping the tree free of undefined build flags. If STRIP_PREVIEWS comes from your local tooling, no worries - everything else landed as-is.

This will ship in the next release. Thanks again!

@b451c

b451c commented Jul 27, 2026

Copy link
Copy Markdown
Owner

v1.7.0 with this change is now live: https://github.com/b451c/quickmd/releases/tag/v1.7.0 - thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants