lopdf
A Rust library for PDF document manipulation. (by J-F-Liu)
printpdf
An easy-to-use library for writing PDF in Rust (by fschutt)
Our great sponsors
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
lopdf
Posts with mentions or reviews of lopdf.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-24.
-
How to get text from a PDF file (lopdf)?
I want to get the text of the first page of a PDF file. I'm using the lopdf crate.
-
How to convert SVGs containing text to a PDF?
I then came up with the genius idea of exporting the PDF using Inkscape and then just edit the text of the PDF, but using lopdf the text is all stacked ontop of each other. How can I simply convert a SVG to PDF using Rust or change the text of a PDF using Rust?
- Rust crate to merge PDFs
-
Purdy: An experimental PDF renderer using WebGPU
I copied a lot from lopdf which is a terrific library for PDF parsing. I don't rely on it explicitly as a dependency because there are some things I'm choosing to do differently, but I'd say at least 80% of the parsing logic is the same so it helped me to bootstrap quite a bit.
printpdf
Posts with mentions or reviews of printpdf.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-03.
-
What's everyone working on this week (40/2022)?
Making a PDF builder on top of https://crates.io/crates/printpdf, which is a bit low level to work (you have to manually calculate text position etc). This builder keeps track of position, margin, font management and so on so writing a PDF becomes straightforward.
-
Anyway to write a pdf top down using Rust?
Hello, this question may be quite specific, but has anyone successfully built a pdf document writing from top to the bottom? I am trying to programmatically generate a pdf document with text only using printpdf, but its use_text function generates text based on coordinates going from the bottom. Meanwhile, there is no way for me to determine the y-axis given the font size affects the distance to the bottom. Does anyone else here have a better strategy? Thank you very much
What are some alternatives?
When comparing lopdf and printpdf you can also consider the following projects:
kiss3d - Keep it simple, stupid 3d graphics engine for Rust.
purdy - An experimental PDF renderer built on WebGPU
gfx - [maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
wasm-pdf - Generate PDF files with JavaScript and WASM (WebAssembly)
msdfgen - Multi-channel signed distance field generator
vortex - A tool to extract images from pdf files
PyPDF2 - A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files
grex - A command-line tool and Rust library with Python bindings for generating regular expressions from user-provided test cases
askama - Type-safe, compiled Jinja-like templates for Rust
Prime-Data - Computed data for primes