linux ubuntu command-line pdf – How to Get Display to Show a PDF Properly

command linelinuxpdfUbuntu

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?

Best Answer

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.

Related Question