Want to contribute? Fork me on Codeberg.org!
PDF page number and header annotator using LaTeX
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 509fdd77f6
Use texlive.combine to optimize texlive
1 year ago
.envrc Initial commit 1 year ago
.gitignore Initial commit 1 year ago
README.md Initial commit 1 year ago
flake.lock Initial commit 1 year ago
flake.nix Use texlive.combine to optimize texlive 1 year ago
numbered.tex Initial commit 1 year ago
run.sh Clean up temporary files after annotation 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.

Clone the repository:

git clone https://git.elnu.com/ElnuDev/pdf-annotator && cd pdf-annotator

Usage:

./run.sh header input [output]