Scanned documents often carry something you don't want: a stray stamp, an old logo, a smudge, a signature, a watermark. Covering it with a black box is crude and obvious. The Smart Eraser tool in pdfredX removes the object and rebuilds the paper background in its place, so no trace is left. Everything happens in your browser, and the file is never uploaded.
Step 01. Load the Document
Open pdfredX and drag a PDF or scan into the upload zone. The page is rendered to Canvas locally through PDF.js โ not a single byte goes to a server. Click ๐ on the card of the page you need to open the editor.
Step 02. Select the Object With ๐งน
In the editor, pick the ๐งน Smart Eraser (Healing) tool. Draw a rectangle around what you want gone: a stamp, a logo, a signature, a smudge. Leave a small margin of clean background around the object โ that's where the algorithm pulls its "material" to rebuild from.
The rule is simple: the flatter and more uniform the background around the object, the cleaner the result. A stamp on a white margin is erased almost perfectly; an object over fine text or a pattern is harder.
Step 03. Tune the Pass Strength
Quality is controlled by the passes slider (fabHealPasses, 1 to 8). One pass is fast, for small objects on a flat background. More passes mean a smoother transition and less of a "seam" at the edge, but the processing takes a little longer. Start with 3 (the default) and raise it if a visible patch remains where the object was.
Don't like the result? Undo (Ctrl+Z) and try a different rectangle or pass count. The Smart Eraser reconstructs the background โ it isn't perfect magic; sometimes it's better to work in two smaller passes.
Step 04. Save
Click ๐พ Save โ the edit is baked into the page, then Create PDF assembles the final file via jsPDF and downloads it straight from the browser. Important: on save, the page is flattened into a single image, so the original pixels under the removed object physically disappear โ the object isn't "hidden under a layer," it's genuinely erased. Free, no sign-up.
How It Works Under the Hood
Under the hood is classic inpainting (image reconstruction), not a neural network. The app reads the pixels of the selected area through getImageData from lowerCanvasEl โ an Uint8ClampedArray of RGBA values. For each pixel inside the rectangle, the color is computed as a weighted blend of the four edges of the selection (top, bottom, left, right): the closer the edge, the larger its contribution. Clean paper background effectively bleeds inward and covers the object.
Several passes are run (fabHealPasses): on each one, already-reconstructed pixels feed into the calculation of their neighbors, smoothing the transition. The result is written back and updates the page background (fabBgUrl) โ without adding any Fabric objects, so the fix becomes part of the image itself.
Known Limitations
Complex background. The algorithm restores a uniform background well (white paper, a flat fill). Removing an object from a photo, a pattern, or fine text without a visible patch isn't always possible โ there's no correct texture to pull from.
Large areas. Erasing an area larger than ~400ร400 px runs on the main thread and may stutter for 0.5โ1 second on a weak phone. A large object is better removed in parts.
It doesn't straighten or reconstruct content. The tool covers the object with background, it doesn't restore what was underneath. If there was text under the stamp, it won't reappear.
Rasterized output. The edit is baked into the page image. A selectable text layer on that page becomes part of the picture after saving.
If your goal isn't to remove an object with background reconstruction but to permanently hide confidential data behind a black box, that's the Redact PDF Text tool: it destroys the pixels under the rectangle.
Try it now โ pdfredx.com, no sign-up, your file stays with you.
