Skip to content

Instantly share code, notes, and snippets.

@sgarciav
Created March 27, 2024 19:18
Show Gist options
  • Save sgarciav/d548a3f9751637252ae796bace82a4be to your computer and use it in GitHub Desktop.
Save sgarciav/d548a3f9751637252ae796bace82a4be to your computer and use it in GitHub Desktop.
Extract a specfic pdf page given a keyword
  1. Find the page that hosts the keyworkd:

    pdfgrep -in <keyword> <pdf-file>

  2. Extract specific pdf page:

    pdftk <inputfile.pdf> cat <page number> output <outfile.pdf>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment