Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 780 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 780 Bytes

pdftools

A collection of PDF tools.

pdfcrop

pdfcrop crops the whitespace from a PDF. In comparison to other tools, it keeps hyperlinks intact. Requires ghostscript.

pdfcrop file.pdf

This outputs the cropped PDF at file.pdf and moves the original to file_original.pdf.

pdfname

pdfname reads a research manuscript file and renames it based on its metadata. Requires PyPDF2.

pdfname file.pdf ["paper title"]

This renames the file to ABC2000PaperTitle.pdf, if the paper has 3 authors whose last names start with A, B, C, the publishing year is 2000 and the paper title starts with "Paper title". An optional search string can be provided to help the tool find the metadata.