-
-
Notifications
You must be signed in to change notification settings - Fork 27
Fix Rust XLSX rendering parity and prepare 0.6.0 #132
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,4 +23,7 @@ subsetter.workspace = true | |
| ttf-parser.workspace = true | ||
| thiserror.workspace = true | ||
| unicode-bidi.workspace = true | ||
| zip.workspace = true | ||
| zip.workspace = true | ||
|
|
||
| [target.'cfg(windows)'.dependencies] | ||
| windows-sys = { workspace = true, features = ["Win32_Graphics_Gdi"] } | ||
|
Comment on lines
+28
to
+29
Comment on lines
+28
to
+29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🤖 get_repo_knowledge executed:
Length of output: 3629 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- Cargo manifest ---'
cat -n minipdf-rs/crates/minipdf/Cargo.toml | sed -n '1,45p'
printf '%s\n' '--- xlsx imports and Windows rasterizer ---'
rg -n -C 4 'windows_sys|RECT|SetEnhMetaFileBits|CreateCompatibleDC|PlayEnhMetaFile|cfg\(windows\)' minipdf-rs/crates/minipdf/src/xlsx.rs
printf '%s\n' '--- workspace windows-sys declaration ---'
rg -n -C 4 'windows-sys|x86_64-pc-windows|windows' minipdf-rs/Cargo.toml minipdf-rs/Cargo.lock .github 2>/dev/null || true
printf '%s\n' '--- validation configuration ---'
find .github -maxdepth 3 -type f -print 2>/dev/null | sort | xargs -r rg -n -C 3 'cargo (fmt|test|clippy|check)|windows|target' || trueRepository: mini-software/MiniPdf Length of output: 29510 🌐 Web query:
💡 Result: In the windows-sys 0.61.2 crate, the RECT struct is not located under the Win32_Graphics_Gdi feature [1][2]. Instead, it is defined in the Win32_Foundation module [1]. To use the RECT struct in your project, you must enable the Win32_Foundation feature in your Cargo.toml file: [dependencies.windows-sys] version = "0.61.2" features = [ "Win32_Foundation", ] Once this feature is enabled, you can access the struct in your Rust code via: use windows_sys::Win32::Foundation::RECT; While many GDI functions (such as FrameRect or CreateRectRgn) accept or return rectangles [3][4], the RECT type definition itself remains centralized in the Foundation module to allow for consistent usage across different Windows API subsystems (like UI or Graphics) without requiring unnecessary feature bloat [1][5]. Citations:
Enable the 📍 Affects 2 files
🤖 Prompt for AI Agents |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: mini-software/MiniPdf
Length of output: 789
🏁 Script executed:
Repository: mini-software/MiniPdf
Length of output: 27370
🤖 get_repo_knowledge executed:
get_repo_knowledge mini-software/MiniPdf /tmp/coderabbit-repo-knowledge/mini-software-minipdf-2049b7d3/conventionsLength of output: 2945
🏁 Script executed:
Repository: mini-software/MiniPdf
Length of output: 11862
Keep
simsun.ttcahead ofsimkai.ttf. When higher-priority CJK fonts are ineligible,select_fontassigns both fonts the same fallback score and selects the first registered font. The current order can therefore switch affected glyphs from SimSun to KaiTi.🤖 Prompt for AI Agents