Skip to content

Darken PDF

Darken faint pencil notes, faded receipts and washed-out photocopies while keeping paper backgrounds clean white.

Drop a PDF here

Preview darkened ink and whitened scan paper before saving.

How to use Darken PDF

  1. Drop your light scan onto the page. A live preview of page 1 renders locally using the Darken preset.
  2. Fine-tune readability controls. Adjust Ink darkness, Contrast, and Whiten uneven paper background while flipping between Preview and Original.
  3. Choose Output DPI and Pages. Pick 150, 200, or 300 DPI and optionally enter a page range such as 1-5.
  4. Export the cleaned PDF. Click Darken PDF to rebuild the selected pages locally and download the result.

Your files are processed on this device and never uploaded. They stay private, and there's nothing to delete afterwards.

Darkening faint pencil notes, receipts, and light toner scans

Photocopied handouts, thermal cash-register receipts, and low-toner prints often scan as pale gray strokes on a muddy background. Running pixel enhancement locally in your browser lets you restore crisp legibility with 0 bytes of sensitive paperwork sent to external servers.

Dialing in Ink darkness, Contrast, and Whiten uneven paper background

Upon dropping a PDF, the Darken preset initializes Ink darkness at 55%, Contrast at +18, and Whiten uneven paper background enabled. Using MDN Web Docs CanvasRenderingContext2D.getImageData(), the preview reads raw RGBA pixel buffers and updates instantaneously as you drag either slider.

If your documents are still sitting on a desk as physical receipts or handwritten notes, you can capture paper scans from your webcam or scanner before enhancing contrast. Raising Ink darkness toward 75% rescues barely visible graphite marks, while lowering Contrast slightly preserves delicate stamp borders.

Comparing Preview and Original before exporting

The segmented Preview and Original toggle above the canvas lets you verify that faint pencil lines darken without clipping fine details. Multi-page documents include previous and next arrows so you can spot-check darker or lighter pages before exporting.

Testing one dark page and one faint page in the preview ensures your slider values work across the entire packet. You never have to guess how a 20-page scan will look after export or re-run the job repeatedly.

How does background whitening remove shadows without erasing dark photos?

Background whitening estimates local paper brightness inside a sliding window around each pixel using a summed-area integral image, then clamps the floor brightness at 96 out of 255. Because large solid photos or dark stamps stay below that floor clamp, they remain dark instead of washing out to white.

First, each pixel converts from RGB to luminance using standard 0.299 R, 0.587 G, and 0.114 B weights from ITU-R BT.601 Studio Encoding Parameters. Next, an integral image evaluates the neighborhood mean in constant time so uneven phone shadows vanish cleanly.

Key safeguards in the local whitening pass include:

  • Adaptive radius: The window scales to roughly one twenty-second of the shorter canvas side (minimum 10 px) so both small receipts and full letter sheets balance evenly.
  • Gamma darkening curve: Raising Ink darkness from 0 to 100 increases the gamma exponent from 1.15 up to 3.4, pulling faint pencil marks down toward black.
  • White clip threshold: Pixels reaching 92% of the local paper estimate snap cleanly to pure white when whitening is active.

Because high-resolution rasterized scans can grow in byte weight, you can shrink darkened scan PDFs for email sharing right after cleaning up the background.

Choosing between Darken, Pure B&W, and Grayscale presets

Three Tone mode buttons switch between curated parameter presets tailored to different scan conditions. Under the PDF Association ISO 32000-2 Specification, each rebuilt page preserves its exact original 72-pt page dimensions while replacing the rasterized image stream.

Choosing the right preset depends on whether your page contains pure typography, handwritten pencil notes, or embedded photographs. Darken balances smooth anti-aliased edges with clean white paper, whereas Pure B&W applies a strict binary threshold relative to local paper brightness so every pixel becomes 0 or 255.

Tone mode preset Default Ink darkness Default Contrast Background whitening Best document type
Darken 55% +18 On (92% clip) Faded receipts, pencil notes, phone scans
Pure B&W 45% +20 On (hard binary cutoff) Crisp text faxes, high-contrast line art
Grayscale 0% +8 Off Mixed text and photos needing smooth tones
Grayscale + Whiten Custom 20% to 40% +10 to +20 Manually enabled Lightly shaded forms with gray stamps

If you want to convert a full-color report to neutral tones with minimal contrast changes, Grayscale PDF opens directly in the grayscale preset. Switching between presets updates the live preview immediately so you can compare legibility before committing to an export.

Output DPI, 4096-pixel raster caps, and post-darkening OCR

Selecting the right resolution balances print sharpness against memory usage and output file size. Running page rendering inside a background worker keeps your browser responsive even on multi-page packets.

Selecting 150, 200, or 300 DPI and targeted page ranges

Output DPI defaults to 200 DPI, with 150 DPI for compact email sharing and 300 DPI for archival prints, all capped at 4096 px on the longest edge. Long jobs use the MDN Web Docs AbortController API so clicking Cancel aborts remaining pages immediately.

Entering specific pages in Pages lets you enhance only the faded middle pages of a packet while leaving crisp cover sheets untouched. Unselected pages pass through unchanged so you keep original vector text intact wherever no contrast cleanup is needed.

Running OCR after darkening for searchable text

Because page pixels are rasterized onto a canvas and re-embedded, darkened pages are saved as clean page images without a text layer. Adding a post-darkening recognition pass restores full copy-and-search functionality across every cleaned page.

Exported files automatically append -darkened.pdf (or -bw.pdf and -grayscale.pdf for those presets) so your original scan stays completely untouched on your device. You can archive both versions side by side or share only the legible enhanced copy with clients.

Tip: Follow up by adding a searchable OCR text layer from the completion panel. Cleaning up faint ink and gray shadows first significantly reduces misread characters during recognition.

Questions

Does darkening a faint PDF scan improve OCR accuracy?

Yes, in most cases. Faded thermal receipts, light pencil notes, and shadowed phone photos often cause OCR engines to drop characters. Boosting ink darkness and whitening uneven paper first gives OCR much cleaner letterforms.

Should I choose Darken, Grayscale, or Pure B&W for my scan?

Darken is ideal for pencil notes, faded receipts, and shaded scans where you want clean white paper without losing subtle pen strokes. Pure B&W forces every pixel to black or white for crisp text-only faxes, while Grayscale keeps smooth tonal shading.

Why does text stop being selectable after darkening a PDF?

Pixel-level contrast and local background whitening require rasterizing each selected page onto a canvas before rebuilding the PDF. If you need searchable or copyable text afterwards, run OCR PDF on the darkened file.

What DPI setting should I use for printing darkened scans?

Select 200 DPI for everyday office printing and email archiving, or 300 DPI for fine print and archival records. Output dimensions are capped at 4096 pixels on the longest side to keep browser memory safe.

Are scanned receipts or tax forms uploaded to a server?

Never. Every page is rendered, adjusted, and re-encoded inside your browser tab and Web Worker, sending 0 bytes of document data over the network.

Can I darken only specific pages in a multi-page PDF?

Yes. Enter specific page numbers or ranges such as 2, 4-8 in the Pages field before exporting. Unlisted pages remain untouched in the rebuilt PDF so cover sheets stay in full color.

Updated