PDF command-line utils written in Rust.
rpdf makes working with PDF annotions super easy! It can
merge annotations from multiple files, some show statistics (
strip specific (or all) annotations.
rpdf is a Rust binary that aims to provides an open source and straighforward command-line alternative to other tools such as PDF Annotator and others.
Disclaimer: rpdf is currently in an early stage, and does not implement many features. I was first developed for my own use, because I needed to merge annotations from PDFs I review with other people. Do not hesitate to propose new features if you feel they could be intersting!
You can install the latest version with
> cargo install rpdf
The command line tool is pretty straighforward to use and is self-documented:
Anytime you need help for a command, you can use
rpdf <COMMAND> --help, or
-h for the short version.
You can count how many annotations your file contains:
And you can also do this per page:
Say we have to files with the same content but different annotations:
You can merge the annotations from both files into one with the
merge command, and verify that all the annotations are present in the final product:
If you want to remove some annotations from a PDF, you can do so with the
Link annotations from the removal process. You can modifiy the behavior with the