#pdf #bindings #mupdf

sys mupdf-sys

Rust FFI binding to MuPDF

19 releases

0.5.0 Apr 27, 2025
0.4.4 Jul 28, 2024
0.4.3 May 14, 2024
0.4.2 Feb 13, 2023
0.0.3 Mar 15, 2020

#186 in #pdf

Download history 525/week @ 2025-03-19 376/week @ 2025-03-26 632/week @ 2025-04-02 429/week @ 2025-04-09 671/week @ 2025-04-16 725/week @ 2025-04-23 530/week @ 2025-04-30 529/week @ 2025-05-07 477/week @ 2025-05-14 449/week @ 2025-05-21 421/week @ 2025-05-28 293/week @ 2025-06-04 307/week @ 2025-06-11 516/week @ 2025-06-18 397/week @ 2025-06-25 623/week @ 2025-07-02

1,891 downloads per month
Used in 7 crates (via mupdf)

AGPL-3.0

38MB
820K SLoC

C 597K SLoC // 0.2% comments C++ 131K SLoC // 0.2% comments Visual Studio Project 29K SLoC // 0.0% comments Shell 18K SLoC // 0.2% comments Python 17K SLoC // 0.5% comments M4 17K SLoC // 0.2% comments Automake 2.5K SLoC // 0.1% comments Visual Studio Solution 2K SLoC Pascal 2K SLoC // 0.1% comments JavaScript 862 SLoC // 0.1% comments Bitbake 527 SLoC Rust 492 SLoC // 0.0% comments Perl 422 SLoC // 0.1% comments C# 313 SLoC // 0.1% comments Assembly 284 SLoC // 0.2% comments WebAssembly 277 SLoC HICAD 208 SLoC AWK 152 SLoC Lua 100 SLoC // 0.3% comments Snakemake 52 SLoC Forge Config 45 SLoC // 0.8% comments Prolog 44 SLoC Templ 40 SLoC // 0.6% comments ReScript 3 SLoC BASH 2 SLoC

Contains (autotools obfuscated code, 685KB) mupdf/thirdparty/lcms2/configure, (autotools obfuscated code, 495KB) mupdf/thirdparty/libjpeg/configure, (obscure autoconf code, 20KB) mupdf/thirdparty/tesseract/configure.ac, (obscure autoconf code, 1KB) configure.ac, (obscure autoconf code, 15KB) mupdf/thirdparty/harfbuzz/configure.ac, (obscure autoconf code, 13KB) mupdf/thirdparty/lcms2/configure.ac and 2 more.

mupdf-rs

GitHub Actions Crates.io docs.rs

Rust binding to mupdf

Working in progress

References

  1. MuPDF Explored

License

This work is released under the AGPL-3.0 license. A copy of the license is provided in the LICENSE file.

Dependencies