printpdf
Rust / WASM library for reading, writing and rendering PDF
...The library emphasizes manual positioning of elements, giving developers precise control over layout and rendering rather than relying on high-level abstractions. It includes advanced typography capabilities such as character spacing, scaling, superscript, and subscript, as well as support for Unicode text. printpdf also offers optimization features like font subsetting to reduce file size, making generated PDFs more efficient. Experimental capabilities include rendering PDF pages to SVG and extracting text content, expanding its use cases beyond simple document generation.