Visual Enhancement

Increase PDF Contrast: Fix Faded Scans and Hard-to-Read Pages

Make faint text darker and a gray page cleaner in the file itself, with OCR results from our own faded test scans.

Emma Thompson · February 4, 2026

Abstract cover of orange and yellow triangles, a yellow sun and dark stripes, for a guide on how to increase PDF contrast

To increase PDF contrast, make a darker copy of the file or edit its scanned pages as images. A whole faded scan can get one fix in one pass, and how far that gets you depends on how faint the letters are.

Text PDF or Scanned PDF: Check First

Try to select a single word. If you can, the PDF holds real text, and its colors were set by whoever made it. If the whole page highlights as one block, it's a scan: a photo of paper, with the paper's gray or yellow tint baked in.

For a scan, you have to change the picture itself. For a text PDF you only want to read, a screen setting may do, and our guide to inverting PDF colors has the paths for a Mac and phones.

How Much Contrast Is Enough

The W3C's accessibility guideline asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. Black on white is 21:1, so most faded scans have a lot of room to improve.

Make a Higher-Contrast Copy With Preview on a Mac

Preview can save a copy through a Quartz filter, which changes the whole file in one go. Both filters below are on our Mac running macOS 26.6.

  1. Open the PDF in Preview.
  2. Choose File, then Export.
  3. In the Quartz Filter menu, pick Lightness Decrease to darken the page, or Black & White for a hard black and white copy.
  4. Save under a new name.

We applied those two filter files to generated faded scans with a small script in November 2026, not through Preview's menu. Measured on the rendered pages, Lightness Decrease raised the 1.76:1 page from 1.86:1 to 3.46:1 and the 3.9:1 page from 4.09:1 to 8.82:1, though the paper darkened too and each file grew from about 0.4 MB to 3.3 MB.

Black & White lost words at 3.9:1 and left the 1.76:1 page blank, so check every page.

Fix a Whole Faded PDF in One Pass

One Ghostscript command form, with the two values set per file, gave all 133 words on every faded test scan, including the one nothing else could read. It turns gray ink black and gray paper white on all pages. We ran it in November 2026 with Ghostscript 10.07.1 on Linux.

1gs -q -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfimage8 -r200 -sOutputFile=out.pdf -c "<</BeginPage{{0.72 sub 0.16 div dup 0 lt{pop 0}if dup 1 gt{pop 1}if}settransfer}>>setpagedevice" -f in.pdf

Ghostscript's download page has Windows installers, a Linux snap and source code, under an open source license. On Windows, its docs name the program gswin64c, so use that in place of gs. On a Mac, its install guide says the simplest way is MacPorts or Homebrew.

In the command, 0.72 is the gray level that turns black and 0.16 is the span up to white, so try your own values on a copy: we used 0.5 and 0.35 for the 3.9:1 page, and 0.82 and 0.08 for the 1.30:1 page. We picked those values knowing how each page was made.

To compare routes, we generated one English text page at each fade level on gray paper, then put each result through our OCR PDF tool. The table shows how many of the 133 words it found.

Route3.9:11.76:11.30:1
No fix133133No text found
Quartz Lightness Decrease133133No text found
Quartz Black & White118Blank pageBlank page
Ghostscript levels133133133

For a mild or medium fade, Change PDF Background is the easy one: on its Sepia copy of the 3.9:1 page, OCR still found all 133 words. The command is for letters that are barely there. Its output is a gray picture with no text layer, and a five-page copy went from 377 KB to 1 MB.

Increase the Contrast of a Faded Scan, Page by Page

For a scan you want to fix for good, edit its pages as images.

  1. Save the pages as images with PDF to PNG. You get a ZIP with one PNG per page.
  2. Open each PNG in a photo editor and raise the contrast, or pull the levels so the paper turns white and the letters darken.
  3. Put the pages back together with PNG to PDF.
The pdf-file.com PDF to PNG screen with Convert all pages selected, the first step to edit the contrast of each scanned page

The rebuilt PDF has no text layer, just like the scan. Run it through OCR PDF afterwards if you want to search it. If the scan is crooked, fix that too: see our deskew guide.

Watch the size, which our guide to why PDF to PNG files are so large explains. Our 431 KB one-page scan became a 3.8 MB PDF this way, so about six such pages reach the 25 MB limit of Compress PDF, which took that page down to 640 KB. Split a longer scan and compress the parts.

Clean a Yellowed Background With Change PDF Background

If the text is already dark but the paper came out gray or yellow, Change PDF Background redraws each page with solid letters on a clean color. Sepia gives dark brown text on a cream page, and every theme keeps at least 4.5:1 contrast.

The pdf-file.com Change PDF Background screen with a PDF uploaded and the seven theme buttons, used to put dark text on a clean background

It keeps only the dark marks of each page, though, so photos, colors and light gray shading drop out. On a faded page it keeps whatever is darkest: in our November 2026 rerun on generated pages with scan noise, OCR read all 134 words of its Sepia copy at 1.76:1 contrast but only 14 at 1.30:1. Pages become pictures, so the text can't be selected anymore.

Why Grayscale Doesn't Fix Low Contrast

Grayscale PDF turns colors into grays but doesn't clean the page. When we converted a scan on yellow paper, the yellow became a light gray, not white. For pages that are mostly too light, our guide to darkening a PDF goes further.

Frequently Asked Questions about Increase PDF Contrast

Can I increase PDF contrast without changing the file?

Not for a scan's faint letters. Apple's Increase contrast setting on a Mac changes items such as borders around buttons, "without changing the contrast of the screen itself".

Does high contrast help OCR?

Only on the faintest page we tried. Our OCR tool found all 133 words at 1.76:1 unfixed, nothing at 1.30:1, and all 133 once that page was fixed.

Try it on your own file