23

I have a pdf that has blurry text. The text itself is readable but causes lots of strain.
This is an example of the text.

This

Is there a way to clear it up?

3
  • 3
    Can the text be searched, or copied to the clipboard? The answer to this clarifying question will tell us whether there is already an OCR layer or if the PDF is just an image. Dec 28, 2020 at 21:01
  • A long time ago I hade this problem with PDFs generated from LaTeX. They where till vectorized but something was broken with them and the text was a PITA to read.
    – d-b
    Dec 28, 2020 at 23:21
  • 1
    If this PDF was generated by TeX/LaTeX, and you have the .ps file corresponding to it (as would have been more common than PDF back when raster fonts were the norm), then pkfix (installed with TeX distributions) is a tool that magically fixes things. If not, it's still possible to detect the original font and substitute modern replacements carefully (without risk of OCR errors!); I've done it for an old PDF once before (very carefully) but it's not trivial and requires understanding of the PDF format. If you can share the PDF (post it somewhere), someone could try maybe. Dec 29, 2020 at 19:12

3 Answers 3

35

This is a raster layer which, unfortunately, also contains text. Arguably the simplest way to fix such PDF would be to use ABBYY FineReader (commercial, works on Windows, Linux, mac OS). A PDF or image file(s) are loaded and processed according to the desired scenario. For example, here we don't really need pre-processing and OCR works out fine after choosing English language for the document:

enter image description here

When saving recognized document, make sure to select Text and pictures only in Save mode section:

enter image description here

This would result in a "clean" PDF with vector fonts that are scalable without pixelization:

enter image description here

Alternatively, one can also other free and open-source OCR tools such as tesseract/Capture2Text/NAPS2 and use LibreOffice Writer/LaTeX to create a new PDF using recognized text.

19

The text has been rasterised - turned into 'dots'.

It should still be vector - using actual fonts which are drawn live to screen.

This could be because the document was scanned and is effectively just a photo, or because at some point in its history the expected font was missing.

The only real fix would be to find an OCR (Optical Character Recognition) app & re-scan it.

0
8

There's another possibility for the cause of the blurriness: A filter layer placed above the scanned raster layer.

I worked in a place some years ago that had document scanners in the network. You scanned your stuff, and the scanner sent you the copy via email - or you could have it sent directly to someone else's email address.

Occasionally, scans of text documents would come out really blurry. As the most IT knowledgeable person available, I got stuck with figuring out what the problem was.

It turned out that the scanner was incorrectly identifying text as a picture and inserting a filter above it to reduce the moiré effect that results from the dots of halftoned images and the resolution of the scanner.

You could fix those blurry text scans by using a PDF editor to delete the filter layer above the text.

I never did figure out why some scans had the filter and some didn't. Some bug or edge case in the halftone recognition algorithm - who knows.

You blurriness probably isn't caused by a filter, but it is something to keep in mind.

2
  • 1
    The OP's screenshot is clearly an example of a JPEG-compressed raster image of text. Dec 30, 2020 at 20:05
  • 2
    @AndreasRejbrand But someone else finding this question in the future might find this helpful. Dec 31, 2020 at 1:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .