Extracting images from PDF to text is a two-stage task: recover the embedded image first, then use OCR when editable text is the final goal. The Extract Images from PDF tool handles the first stage locally, exporting supported JPG and PNG assets without uploading the document; it does not perform OCR itself. A PDF can contain selectable text, a full-page scan, vector artwork, and separate embedded photographs or logos. Those items are different objects, so the right extraction method depends on the asset you want. If the page already has a text layer, the PDF to Text Converter is not part of the Extract Images from PDF workflow. If the desired output is a picture of the whole page, including visible text and vector elements, use PDF To PNG instead. The Extract Images from PDF tool is for recovering image data stored inside the document, such as a photograph, logo, graphic, or scanned asset. It identifies supported image objects, shows each candidate's format and dimensions, and prepares a separate download. Supported DCTDecode images are exported as the document's stored JPG payload. Simple 8-bit RGB or grayscale FlateDecode images are inflated and encoded as PNG in the browser. Complex objects are skipped rather than decoded with the wrong colors. Scanning, decoding, PNG encoding, and download creation remain in the current browser tab, and the PDF never leaves the device.

extract images from pdf to text
Extract Images from PDF to Text: First Extract, Then OCR

What the embedded-image tool returns

Embedded-image extraction does not reproduce the page layout. An image object is a stored raster asset that PDF drawing instructions can place on a page. The tool searches for indirect image objects inside the PDF, not for every visible shape or background. That distinction matters in a brochure: text set in a font is not an image, a vector logo is not a raster object, and one page can contain several unrelated images. Each supported image receives its own download link.

A repeated indirect image reference is inspected only once. This prevents one stored asset from appearing as a confusing set of duplicate downloads while keeping separate assets available as separate choices.

Choose the route that matches the result

Start by deciding whether you need an embedded asset, a complete page image, existing selectable text, or OCR applied to words inside a picture.

Goal Method Result
Recover an embedded photograph or logo Extract Images from PDF A separate supported JPG or PNG asset
Capture the complete visible page PDF To PNG A page image containing visible text and vector artwork
Read words that are already selectable PDF to Text Converter Not an output of Extract Images from PDF; no text result is guaranteed by this tool
Read words contained inside a picture Extract the image, then use OCR Editable text produced by a separate OCR workflow

Use embedded extraction for photographs, logos, scans, and graphics placed inside the PDF. It isolates the image asset instead of mixing it with surrounding page content. Exported dimensions can differ from the page dimensions because the result represents an image object, not a rendered or cropped page.

Extract embedded images from a PDF

Open the tool and follow these steps to locate the supported assets in one document.

  1. Choose one local PDF. Select a file no larger than 25 MB. The tool validates the bounded PDF and its header before scanning it, and the file stays in your browser.
  2. Select Extract images. This starts a scan of the PDF's embedded image objects. The browser identifies supported candidates and prepares the results for review.
  3. Review and download each result. Check the listed format and dimensions, then use the download link for each supported JPG or PNG. Keep the original PDF until the downloaded file matches the asset you expected.

Unsupported objects appear as skips rather than faulty downloads. Read those notices before assuming every visible element in the document has been recovered.

Supported objects, outputs, and skips

The tool supports two deliberately defined PDF image forms. DCTDecode is the PDF name for an embedded JPEG stream. Its stored bytes are exported directly instead of rendering the image and recompressing it. The second form is a simple FlateDecode image using 8-bit DeviceRGB or DeviceGray color. For that case, the browser inflates the bounded raw pixel stream, places the pixels on a local canvas, and encodes a PNG.

Stored PDF image Processing Download
DCTDecode Exports the stored JPEG stream without re-rendering or recompressing it JPG
Simple FlateDecode with 8-bit DeviceRGB or DeviceGray Inflates the raw pixels and encodes them on a local canvas PNG
Unsupported encoding, mask, color space, predictor, or filter chain Skips the object and reports the skip No download

PNG is used for the FlateDecode case because a raw Flate image stream is not a standalone image file that normal applications can open. JPEG, JPX, JBIG2, LZW, indexed palettes, CMYK, soft masks, image masks, predictors, and chained filters are not treated as interchangeable. The tool skips unsupported objects instead of guessing their colors or producing damaged files.

The scanner handles PDF stream containers through pdf-lib, as illustrated by its PDFRawStream source. Browser-side decompression follows the DecompressionStream browser API, allowing the work to remain in the current tab.

Limits that can stop or narrow extraction

A PDF can be below the file-size limit and still exceed a safety limit for an individual image. The tool checks its object, dimension, pixel, and decoded-data budgets before allocating a large output buffer.

  • Input: one local PDF, up to 25 MB.
  • Candidate count: a separate candidate-count ceiling is enforced.
  • Image dimensions: the maximum image dimension is 12,000 pixels.
  • Single image: no more than 40 megapixels per image.
  • Total pixels: no more than 100 megapixels across the extraction run.
  • Decoded Flate data: no more than 100 MB of decoded Flate image data.

Password-protected, malformed, or unusually complex PDFs can still fail. The tool does not bypass encryption, repair a broken file, validate a signature, or claim that the source document is trustworthy. Those distinctions matter when deciding whether the browser workflow is suitable for a particular document.

Build a reliable image-to-text workflow

If the downloaded image contains words and editable text is the goal, move it into a separate OCR workflow after extraction. The image tool supplies the image; OCR performs character recognition.

  1. Download the supported image. Choose the JPG or PNG that contains the required text and save it before leaving the tool.
  2. Inspect the image. Check its dimensions, orientation, sharpness, and visible boundaries. Small, cropped, or unclear regions can reduce OCR accuracy.
  3. Submit the image to an OCR workflow. Character recognition is performed by the separate OCR workflow, not by this image-extraction tool.
  4. Compare the result with the image. Proof names, numbers, punctuation, and line breaks against the source picture before using the recognized text.

This image-extraction tool does not extract selectable text. If the target is a complete visible page rather than one embedded asset, render the page first and then apply OCR to that page image.

Verify each download before reuse

Review each file's format and dimensions, then open it and compare its appearance with the expected asset. A preserved DCTDecode JPG contains the JPEG payload stored in the PDF; it does not restore quality that was lost before the image entered the document. A PNG export is newly encoded from the supported FlateDecode pixels. Keep the original PDF, use a downloaded file only after it matches what you expected, and save any needed files before choosing another PDF or leaving the tool. Temporary download URLs are released at those points.

Related reading: Extract Pages From a PDF in Your Browser.

Related reading: PDF to Long Image on Android: Browser Steps.