Skip to content
PurePDF HQ
Color theme

Remove images from a PDF and inspect scripts or layers

Need a text-only PDF for fast reading, printing without photos, or smaller storage? Strip every embedded raster image (/Subtype /Image) while keeping fonts, tables, and vector lines intact—plus inspect and clean embedded JavaScript actions and optional content group (OCG) layers.

Runs pdf-lib in your browser, a 214 KB download once you choose a file. Open-source licenses

How to remove images from a PDF

Select or drop your PDF in the box above.

Choose whether to remove raster images, strip embedded JavaScript actions, and flatten optional content layers (/OCProperties), or remove images only.

Select Remove images and download the text-and-vector PDF.

Show and strip embedded PDF JavaScript and OCG layers

Alongside stripping /Image XObjects from each page's /Resources dictionary, the tool inspects the document catalog for /Names/JavaScript trees, /OpenAction and /AA triggers, and /OCProperties optional content groups.

After the job finishes, the summary reports how many raster images were removed, whether any JavaScript actions were found and stripped, and which OCG layer names were present and flattened.

100% in-browser with pdf-lib

All inspection and stream removal happens locally on your device. No document bytes, images, or scripts ever leave your browser.