How to get display to show a pdf properly

When I do:

display file.pdf

it shows this:

enter image description here

I can’t resize the little window that it adds but I can remove it by clicking on the x. I can also remove the checkerboard effect that comes from assuming transparency, I think, with:

display -alpha opaque file.pdf

enter image description here

The text is now rough and slightly hard to read. It seems to have been rendered in black and white where anti-aliasing should have used more shades/colors.

How can this be fixed?

Asked By: Simd

||

You need to remove the alpha channel, rather than making it opaque — this will render the alpha information correctly (including anti-aliasing), then remove it.

display -alpha remove file.pdf

The small window shown above the main window is used to scroll around the document.

Answered By: Stephen Kitt
Categories: Answers Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.