Skip to content

Instantly share code, notes, and snippets.

View wenlibin02's full-sized avatar
💭
Hacking the world.

wenlibin02

💭
Hacking the world.
View GitHub Profile
@wenlibin02
wenlibin02 / remove-annotations.sh
Created June 20, 2017 15:01 — 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