extract-images

Extract text from a PDF file.

Usage

$ pdfly extract-images --help
 Usage: pdfly extract-images [OPTIONS] PDF

 Extract images from PDF without resampling or altering.

 Adapted from work by Sylvain Pelissier
 http://stackoverflow.com/questions/2693820/extract-images-from-pdf-without-res 
 ampling-in-python

╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ *    pdf      FILE  [default: None] [required]                               │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help          Show this message and exit.                                  │
╰──────────────────────────────────────────────────────────────────────────────╯

Examples

Extract the first page of document.pdf and extract the images present in it.

pdfly cat document.pdf 9 -o page.pdf

pdfly extract-text page.pdf
 Extracted 1 images:
 - 0-Im0.png