✍️ TextWonder 📄 PDFWonder 📁 DocWonder 🖼️ ImageWonder 🛠️ DevWonder 🎓 StudentWonder 🧮 CalcWonder 🩺 HealthWonder 🎨 ColorWonder 💾 DataWonder 📐 UnitWonder
TextWonder
PDF Guide · 5 min read ·

How to Enhance a Scanned PDF Online Free (Clean Background, Sharpen Text)

Automatically clean up every page of a scanned PDF online — whiten background, boost contrast, sharpen text. Free, browser-based, no upload to any server.

PDFs created from phone photos or low-quality scanners often look washed out — grey backgrounds, soft text, uneven lighting. You need them to look like they came from a proper flatbed scanner. This guide shows you how to clean up every page automatically, for free, without any software.

The Problem with Phone-Photo PDFs

When you photograph a document with your phone and convert it to a PDF, you get:

A proper scan fixes all of these. The PDF Scan Enhancer replicates what scanner software does: grayscale conversion, automatic level adjustment, contrast boost, and edge sharpening — applied to every page in one click.

How to Enhance a Scanned PDF (Step by Step)

  1. Open the PDF Scan Enhancer.
  2. Drop your PDF in or click to browse.
  3. A preview of page 1 loads — click Enhanced (Page 1 preview) tab to see the effect.
  4. Choose a preset: Document Clean (recommended), Soft Scan, or Photocopy.
  5. Adjust sliders if needed (Brightness, Contrast, Background Clip, Sharpen).
  6. Click Apply to All Pages & Download PDF.
  7. A progress bar shows each page being processed. The enhanced PDF downloads automatically when done.
Free Tool
PDF Scan Enhancer — Clean Every Page Automatically →
Upload a PDF, preview the effect on page 1, then apply to all pages. White background, dark text, sharp edges. No upload to servers.

Understanding the Three Presets

Document Clean (default)

Applies 2% histogram clipping, moderate contrast, and edge sharpening. Best for typed text, printed documents, answer sheets, and books photographed under normal indoor light. The most common choice for PDFs made from phone photos.

Soft Scan

Lower contrast and no sharpening. Preserves fine pencil marks, handwriting, and mid-tones. Use this for handwritten notes, pencil sketches, or lightly printed text where the aggressive Document Clean preset makes fine strokes disappear.

Photocopy

Maximum contrast — bold black text, pure white background. Some fine detail is lost. Best for documents that will be printed or faxed, or PDFs where the text contrast needs to be as high as possible for OCR software.

How the Enhancement Works

Each page goes through four steps:

  1. Render at 144 DPI — PDF.js renders each page at 2× the base PDF resolution (72 pt/inch × 2 = 144 DPI), producing a crisp raster image of each page.
  2. Grayscale conversion — colour information is discarded using the standard luminance formula, removing colour cast from warm light or tinted paper.
  3. Auto-levels — the tool analyses the pixel histogram and clips the darkest and brightest N% of pixels before stretching the remaining range to fill 0–255. This is what removes shadows and makes the background white even under uneven lighting.
  4. Contrast boost and optional sharpening — a contrast factor formula increases tonal separation between text and paper, and an unsharp mask (2-pass box blur) makes text edges crisp.

The enhanced pages are embedded as JPEG images into a new PDF using pdf-lib. The output file dimensions match the original PDF exactly.

Tips for Best Results

After Enhancing: Next Steps