Extract images
Save the pictures embedded in a PDF (photos, logos, scanned pages), from every page or chosen pages, as image files in a folder.
Command in the PDF toolkit · id ooa.pdf/extract_images · 11 inputs (2 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | Yes | PDF file. | |
| Target folder | File | Yes | Folder for the images. | |
| Minimum size | Number | No | 1 | Skip images narrower or lower than this many pixels (e.g. 32 to skip icons). |
| Password | Credential | No | Password for protected PDFs. | |
| Pages | String | No | Only pages listed here, e.g. 1,3,5-7; every page when empty. | |
| Format | String | No | png | Image file format. |
| File prefix | String | No | Start of each image's file name, followed by _page1_img1 and so on; the PDF's name when empty. | |
| Color | String | No | color | Colour depth: color keeps the colours (24-bit); gray saves 8-bit greyscale copies; black_white saves 1-bit images. |
| Resolution (DPI) | Number | No | 0 | Resize each image to this many dots per inch at the size it is shown on the page (e.g. a picture shown 2 inches wide becomes 300 pixels wide at 150 dpi); 0 keeps the pixels stored in the PDF. An image the page does not draw keeps its stored size. |
| Jpeg quality | Number | No | 90 | JPEG quality from 1 (smallest file) to 100 (best picture); also used for TIFF with jpeg compression. |
| Tiff compression | String | No | lzw | TIFF compression: lzw and deflate are lossless; ccitt_g4 gives the smallest black-and-white files (images are made black and white); jpeg suits photos. |
Outputs
| Output | Type | What it is |
|---|---|---|
| files | List | Created image files. |
| count | Number | Number of images saved. |