pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

List Images

This command prints a list of embedded images for selected pages.

Have a look at an example.

Usage

pdfcpu images list [-p(ages) selectedPages] inFile

Flags

name description required
p(ages) selected pages no


Common Flags

name description values
v(erbose) turn on logging  
vv verbose logging  
q(uiet) quiet mode  
-o(ffline) disable http traffic  
c(onf) config dir $path, disable
opw owner password  
upw user password  
u(nit) display unit po(ints),in(ches),cm,mm


Arguments

name description required
inFile PDF input file yes


Example

List all embedded images of test.pdf:

$ pdfcpu images list test.pdf
pages: all
4 images available
Page  Obj# | Id  | Type  SoftMask ImgMask | Width | Height | Colorspace Comp bpc Interp |   Size | Filters
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
    1    3 | Im0 | image    *             |  1667 |   2646 |  DeviceRGB    3   8        | 787 KB | DCTDecode
    2   10 | Im0 | image    *             |  1667 |   2646 | DeviceGray    1   8        | 1.6 MB | FlateDecode
    3    8 | Im0 | image    *             |  1667 |   2646 |  DeviceRGB    3   8        | 1.7 MB | FlateDecode
    4    9 | Im0 | image    *             |  1667 |   2646 |  DeviceRGB    3   8    *   | 3.8 MB | FlateDecode