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.
Related tools
- Extract images from PDF: Save every image in a PDF at its original quality, as JPG or PNG.
- Compress PDF: Make a file smaller, or at or under a size you type.
- PDF to text: Save all the text of a PDF as a plain .txt file.
- Grayscale PDF: Make every page of a PDF show in shades of gray, text kept.
- Split PDF: Save pages or ranges of a file as new files.
- Merge PDF: Join several files into one, in the order you choose.