- PDFly
- Extract Metadata
- Extract Pages from a PDF
- Concatenate PDFs together
- Convert Image to PDF
- Convert Text file to PDF
Utility to extract metadata, cut, splice or concatenate PDFs.
https://pdfly.readthedocs.io/en/latest/
brew install pdflypdfly meta "$name.pdf"Works like Python list - indices start at zero.
This takes pages 2, 3 and 4 into out.pdf:
pdfly cat input.pdf 1:4 -o out.pdfExtract the 5th page:
pdfly cat input.pdf 5 -o out.pdfpdfly cat input1.pdf input2.pdf -o out.pdfpdfly x2pdf image.jpg -o out.pdfbrew install pandocpandoc "$name.txt" -o "$name.pdf"brew install enscript ghostscriptenscript "$name.txt" -o - | ps2pdf - "$name.pdf"Built in to macOS, but limited styling:
textutil -convert pdf "$name.txt" -output "$name.pdf"