Nipdf is a PDF file reader and tools written in Rust. It is still in development, lack some features, but it can view most PDF files without problem.
nipdf
: The core library.nipdf-macro
: The macro library fornipdf
library.nipdf-render
: Render library usingtiny-skia
library.nipdf-dump
: The command line interface tool to extract, dump and convert PDF file to png image.nipdf-reader
: The GUI viewer usingiced
gui library.nipdf-viewer
: The GUI viewer usinggtk
gui library.prescript
: Postscript virtual machine, to handle postscript function, type1 font, cmap, etc.cff-parser
: CFF font parser.
Run cargo run -p nipdf-reader -- path-of-pdf-file
- PDF 2.0 support
- Annotation render
- Interactive Form
- Wasm
- Pure Rust
- Shadings
- Radius shading with two circles
- Free-form Gouraud-shaded triangle meshes (Type 4)
- Lattice-form Gouraud-shaded triangle meshes (Type 5)
- Coons patch meshes (Type 6)
- Tensor-product patch meshes (Type 7)
- Stable core API
Fowling C/C++ lib used because of no equivalent rust crates or has missing some feature or bug.
zlib
, rust version failed handle some deflate casesfreetype
,ttf-parser
can not render type1 font, and failed render somecjk
glyphs