How to Extract Images from a PDF File

Need to pull images out of a PDF? Here are the best methods to extract photos, logos, and graphics from PDF documents while preserving quality.

By PeacefulPDF Team

You've been there. Someone sends you a PDF with a great photo, a useful chart, or a logo you need to use elsewhere. You want that image, but how do you get it out?

The obvious approach — take a screenshot — works, but you lose quality. Screenshots capture what's on screen, not the original image data. The result is blurry when enlarged, and every time you save a screenshot, you add compression artifacts.

There are better ways. Let me show you how to actually extract images from PDFs while preserving their original quality.

Understanding Images in PDFs

PDFs store images differently than, say, Word documents. When an image is placed in a PDF, it's embedded at a specific resolution. That resolution might be high (original quality from a camera) or low (already compressed for web).

The key insight: unless the PDF creator downscaled images, the original image data is still in there. Extraction means pulling out that original data, not taking a screenshot of what you see.

Method 1: Use a PDF Image Extraction Tool

The easiest approach. Tools like our PDF utilities can extract embedded images at their original resolution. You upload the PDF, and the tool finds and exports all images.

This works well when:

  • The images were embedded at high resolution
  • You want all images from a document
  • You don't have desktop software installed

Method 2: Adobe Acrobat Pro

If you have Acrobat Pro, you can export all images at once:

  1. Open the PDF in Acrobat Pro
  2. Go to Tools → Export PDF
  3. Choose "Image" as the export format
  4. Select your preferred image format (PNG for quality, JPEG for smaller files)
  5. Click Export

Acrobat extracts all images from the document and saves them to a folder. Quality is preserved — you get the original embedded images.

Method 3: Preview on Mac

Preview has a lesser-known trick. If you open a PDF in Preview, you can drag images directly out:

  1. Open the PDF in Preview
  2. Click and drag to select the image (or use the rectangle select tool)
  3. Copy (Cmd+C)
  4. Paste into an image editor or document

This doesn't always preserve full resolution, but it's better than screenshotting.

For better results, try Preview's "Export..." option with the image selected — sometimes this gives you the original resolution.

Method 4: Convert PDF to Images

If you want every page as an image (rather than just the embedded images), convert the entire PDF:

  1. Use our PDF to Image converter
  2. Choose PNG for quality or JPEG for smaller file size
  3. Set the resolution (300 DPI for print, 150 DPI for screen)
  4. Export

This renders each page as a complete image. Good for charts, diagrams, or when you need the whole page.

Method 5: Command Line with pdfimages

For power users, the `pdfimages` tool (part of poppler-utils) extracts images at original quality:

pdfimages -all document.pdf output-prefix

This extracts every image from the PDF, naming them output-prefix-001.png, output-prefix-002.jpg, etc. The `-all` flag preserves original formats (some images might be JPEG, others PNG).

Install poppler-utils with:

brew install poppler  # Mac apt-get install poppler-utils  # Ubuntu/Debian

Method 6: Open in Photoshop or GIMP

Image editors can open PDFs directly:

  1. File → Open, select your PDF
  2. Choose which page(s) to import
  3. Set the resolution (match the original document's DPI)
  4. The PDF opens as an image layer

You can then crop to the specific image you want and export. This works well for single images on clean backgrounds.

Quality Considerations

Not all image extractions are equal. Here's what affects your results:

Original Embed Quality

If the PDF creator downscaled images before embedding, you can't get back resolution that wasn't there. A 72 DPI web image in a PDF will still be 72 DPI when extracted.

Compression

Some PDF creators compress images heavily. The extracted image might show JPEG artifacts even at full resolution. This isn't fixable — the damage was done during PDF creation.

Vector Graphics

Logos and illustrations might be vector graphics, not raster images. These can be extracted as SVG or PDF paths, which means infinite scalability. Tools like Inkscape can extract vector content.

When Screenshot Is Actually Fine

Sometimes screenshot quality is acceptable:

  • Images for social media (displayed small anyway)
  • Quick mockups where exact quality doesn't matter
  • When the original image was low resolution regardless
  • Charts and diagrams that will be re-rendered at similar size

Don't feel like you always need maximum quality. Match your extraction method to your actual needs.

Legal and Ethical Notes

Just because you can extract an image doesn't mean you should use it. Consider:

  • Copyright. Most images in PDFs are someone's intellectual property.
  • Licensing. Stock photos, logos, and branded images have usage restrictions.
  • Privacy. Photos of people may have privacy implications.

Extract for personal use or with permission. Don't republish copyrighted images without authorization.

The Bottom Line

Extracting images from PDFs is straightforward once you know the tools. For quick jobs, use an online extractor or the Preview drag trick. For professional work, use Acrobat Pro or command-line tools that preserve original resolution.

The key is avoiding screenshots when quality matters. Screenshots capture the display, not the data. Use proper extraction tools, and you'll get images that look as good as the original.

Ready to try PDF Tools?

No uploads, no sign-ups. Everything happens in your browser.

Try PDF Tools Free →