Skip to content

Instantly share code, notes, and snippets.

@antoineallard
antoineallard / remove-annotations.sh
Created June 25, 2018 08:32 — forked from stefanschmidt/remove-annotations.sh
Remove all annotations from a PDF document
pdftk original.pdf output uncompressed.pdf uncompress
LANG=C sed -n '/^\/Annots/!p' uncompressed.pdf > stripped.pdf
pdftk stripped.pdf output final.pdf compress