You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Elnu
112ea9840a
|
1 year ago | |
---|---|---|
.envrc | 1 year ago | |
.gitignore | 1 year ago | |
README.md | 1 year ago | |
flake.lock | 1 year ago | |
flake.nix | 1 year ago | |
numbered.tex | 1 year ago | |
run.sh | 1 year ago |
README.md
pdf-annotator
pdf-annotator is a utility for quickly adding a titled header and page number to arbitrary PDF documents.
Please note that there are a couple known limitations:
- All outputted documents will be US Letter size in portrait orientation, regardless of the dimensions of the input PDF. In the case that the dimensions differ, the input contents will be centered on the page.
- Any filled form fields and comments on the input PDF will be lost. This appears to be a limitation of LaTeX's
\includepdf
.
Usage
If you have Nix installed, you can run pdf-annotator with nix run
.
nix run git+https://git.elnu.com/ElnuDev/pdf-annotator -- header input [output]
The output parameter is optional, and if excluded, the output PDF will be saved to numbered.pdf
.
For example:
nix run git+https://git.elnu.com/ElnuDev/pdf-annotator -- "The header goes here." input.pdf output.pdf
Usage without Nix
If you have the misfortune of not having Nix available, ensure that the pdflatex
command is available, which should be installed alongside texlive-full
(the small scheme should be sufficient).
Clone the repository:
git clone https://git.elnu.com/ElnuDev/pdf-annotator && cd pdf-annotator
Usage:
./run.sh header input [output]