版本发布 3
## Breaking Changes * Move `to_{html,xhtml,xml,text,json}` methods from `Page` to `TextPage` by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/143 * Return more information for `outlines` by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/145 * Shorten enum names in mupdf_sys by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/152 * Fix memory safety of native device by @Wybxc in https://github.com/messense/mupdf-rs/pull/164 ## Other Changes * Update to mupdf v1.26.0-rc1 and fix leak by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/135 * Fix build on windows-2022 and windows-2025 (visual studio 2022) by @newinnovations in https://github.com/messense/mupdf-rs/pull/139 * Refactor mupdf-sys build script by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/136 * Add initial OCR support in document_writer by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/141 * Add bounds check and get rid of allocation for `set_{user,owner}_password` by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/142 * Update to mupdf 1.26.1 by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/144 * Remove windows 2019 from CI by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/150 * Remove bindings to private or c std types by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/149 * Get rid of num_enum dependency by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/148 * Remove mingw i686 from CI by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/158 * Fix 1.88 clippy complaints by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/157 * Extension of the Rect and IRect structs by @newinnovations in https://github.com/messense/mupdf-rs/pull/156 * Fix some clippy warnings by @Wybxc in https://github.com/messense/mupdf-rs/pull/163 * Fix mupdf build on macOS by @Wybxc in https://github.com/messense/mupdf-rs/pull/161 * Implement to_svg for DisplayList by @jackpot51 in https://github.com/messense/mupdf-rs/pull/166 * Use macro to simplify common wrapper operations by @itsjunetime in https://github.com/messense/mupdf-rs/pull/168 * Add more functions to support annotation operations by @itsjunetime in https://github.com/messense/mupdf-rs/pull/169 * Fix some clippy and doc issues and add docs to CI by @itsjunetime in https://github.com/messense/mupdf-rs/pull/170 * Extend from_enum macro to keep all enums at smallest repr by @itsjunetime in https://github.com/messense/mupdf-rs/pull/172 * Add more annotation functions by @itsjunetime in https://github.com/messense/mupdf-rs/pull/171 * Handle samples being null if empty (w=0 and h=0) by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/176 * Add github action for trusted publishing to crates.io by @vincent-uden in https://github.com/messense/mupdf-rs/pull/177 ## New Contributors * @newinnovations made their first contribution in https://github.com/messense/mupdf-rs/pull/139 * @Wybxc made their first contribution in https://github.com/messense/mupdf-rs/pull/163 * @jackpot51 made their first contribution in https://github.com/messense/mupdf-rs/pull/166 **Full Changelog**: https://github.com/messense/mupdf-rs/compare/v0.5.0...v0.6.0
## Breaking Changes * Move `to_{html,xhtml,xml,text,json}` methods from `Page` to `TextPage` by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/143 * Return more information for `outlines` by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/145 * Shorten enum names in mupdf_sys by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/152 * Fix memory safety of native device by @Wybxc in https://github.com/messense/mupdf-rs/pull/164 ## Other Changes * Update to mupdf v1.26.0-rc1 and fix leak by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/135 * Fix build on windows-2022 and windows-2025 (visual studio 2022) by @newinnovations in https://github.com/messense/mupdf-rs/pull/139 * Refactor mupdf-sys build script by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/136 * Add initial OCR support in document_writer by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/141 * Add bounds check and get rid of allocation for `set_{user,owner}_password` by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/142 * Update to mupdf 1.26.1 by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/144 * Remove windows 2019 from CI by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/150 * Remove bindings to private or c std types by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/149 * Get rid of num_enum dependency by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/148 * Remove mingw i686 from CI by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/158 * Fix 1.88 clippy complaints by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/157 * Extension of the Rect and IRect structs by @newinnovations in https://github.com/messense/mupdf-rs/pull/156 * Fix some clippy warnings by @Wybxc in https://github.com/messense/mupdf-rs/pull/163 * Fix mupdf build on macOS by @Wybxc in https://github.com/messense/mupdf-rs/pull/161 * Implement to_svg for DisplayList by @jackpot51 in https://github.com/messense/mupdf-rs/pull/166 * Use macro to simplify common wrapper operations by @itsjunetime in https://github.com/messense/mupdf-rs/pull/168 * Add more functions to support annotation operations by @itsjunetime in https://github.com/messense/mupdf-rs/pull/169 * Fix some clippy and doc issues and add docs to CI by @itsjunetime in https://github.com/messense/mupdf-rs/pull/170 * Extend from_enum macro to keep all enums at smallest repr by @itsjunetime in https://github.com/messense/mupdf-rs/pull/172 * Add more annotation functions by @itsjunetime in https://github.com/messense/mupdf-rs/pull/171 * Handle samples being null if empty (w=0 and h=0) by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/176 * Add github action for trusted publishing to crates.io by @vincent-uden in https://github.com/messense/mupdf-rs/pull/177 ## New Contributors * @newinnovations made their first contribution in https://github.com/messense/mupdf-rs/pull/139 * @Wybxc made their first contribution in https://github.com/messense/mupdf-rs/pull/163 * @jackpot51 made their first contribution in https://github.com/messense/mupdf-rs/pull/166 **Full Changelog**: https://github.com/messense/mupdf-rs/compare/v0.5.0...v0.6.0
## What's Changed * Add support for msys2 environment by @vinxv in https://github.com/messense/mupdf-rs/pull/94 * fix build script on gnu environment by @vinxv in https://github.com/messense/mupdf-rs/pull/96 * Return an Option from `outline_glyph` instead of a `Path` containing a null pointer by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/100 * Allows `PathWalker` to be used without creating a vtable by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/101 * Rework `ColorParams` internals and allow conversion from `fz_color_params` by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/102 * Add `convert_color` to `Colorspace` by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/103 * Add `expansion` method to matrix by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/104 * Improve `mupdf-sys` docs by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/106 * Fix CI by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/107 * Deduplicate code in build script by @itsjunetime in https://github.com/messense/mupdf-rs/pull/110 * Apply cleanups suggested by clippy and plug it into CI by @itsjunetime in https://github.com/messense/mupdf-rs/pull/111 * Make serde optional and move serde_json into dev-dependencies by @itsjunetime in https://github.com/messense/mupdf-rs/pull/113 * Overhaul many parts of unsafe semantics using zerocopy and NonNulls by @itsjunetime in https://github.com/messense/mupdf-rs/pull/112 * Add errptr for fz_highlight_selection to catch potential throws by @itsjunetime in https://github.com/messense/mupdf-rs/pull/114 * Add the ability to write `Device`s in Rust by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/105 * Don't short-circuit in ffi_try by @itsjunetime in https://github.com/messense/mupdf-rs/pull/115 * Impl Send + Sync for FzArray by @itsjunetime in https://github.com/messense/mupdf-rs/pull/116 * Remove accidental debug print for testing by @itsjunetime in https://github.com/messense/mupdf-rs/pull/117 * Allow negative values for STextPage JSON parsing by @pratyushmittal in https://github.com/messense/mupdf-rs/pull/118 * Fix panics for invalid utf-8 json streams by @pratyushmittal in https://github.com/messense/mupdf-rs/pull/119 * Fix typo in the `sys-lib-tesseract` feature by @syldium in https://github.com/messense/mupdf-rs/pull/120 * Allow for compilation of mupdf-sys on Windows with Visual Studio 2022 by @vincent-uden in https://github.com/messense/mupdf-rs/pull/125 * make corrections by @kirawi in https://github.com/messense/mupdf-rs/pull/122 * Add FilePath newtype by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/130 * Align sys-lib features with upstream by @ginnyTheCat in https://github.com/messense/mupdf-rs/pull/132 * Update to mupdf 1.25 by @itsjunetime in https://github.com/messense/mupdf-rs/pull/121 * Fix mupdf build with clang 17 on macOS by @messense in https://github.com/messense/mupdf-rs/pull/133 ## New Contributors * @vinxv made their first contribution in https://github.com/messense/mupdf-rs/pull/94 * @ginnyTheCat made their first contribution in https://github.com/messense/mupdf-rs/pull/100 * @itsjunetime made their first contribution in https://github.com/messense/mupdf-rs/pull/110 * @pratyushmittal made their first contribution in https://github.com/messense/mupdf-rs/pull/118 * @syldium made their first contribution in https://github.com/messense/mupdf-rs/pull/120 * @vincent-uden made their first contribution in https://github.com/messense/mupdf-rs/pull/125 * @kirawi made their first contribution in https://github.com/messense/mupdf-rs/pull/122 **Full Changelog**: https://github.com/messense/mupdf-rs/compare/v0.4.4...v0.5.0