Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

is there any ffmpeg like command line program for pdfs? Creating, Appending/Removing pages, viewer, etc?


For appending, removing, merging pages, there’s pdftk: https://www.pdflabs.com/tools/pdftk-server/


gs (ghostscript), mutool, ocrmypdf...

To add/remove: mutool merge -h

To split PDF pages: mutool poster -h

I made a script here that I use frequently for scanned documents: https://github.com/chapmanjacobd/computer/blob/main/bin/pdf_...




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: