# View pdf file in terminal

I intend to watch pdf documents straight on our collection as opposed to replicating them to my neighborhood equipment and afterwards opening them in a visitor.

Just how can I watch a pdf documents in my terminal?

75
2022-06-07 15:16:38
Source Share

One even more remedy is to make use of command gnome - open

gnome-open youfile.pdf


Provided that you have login your web server with - X alternative (ssh - X)

2
2022-07-11 01:29:46
Source

When I intend to "view a pdf documents in terminal", that for me suggests that I intend to in fact see an uncompressed PDF, I do:

pdftk in.pdf output out.pdf uncompress


I constantly asked yourself why both less in.pdf and also less out.pdf offer me simply message strings in the PDF (and also leaving out the message - just PDF regulates I would certainly anticipate in out.pdf).

Well, that takes place as a result of the lesspipe thinking I desire pdftotext being run first - and also given that below I do not, I need to especially disable the lesspipe by establishing LESSOPEN setting variable to absolutely nothing ; that is:

\$ LESSOPEN="" less out.pdf


And ultimately, I can watch the uncompressed PDF code making use of less

6
2022-07-09 20:59:32
Source

In several systems much less makes use of lesspipe, which can take care of pdftotext instantly. Consequently, you can quickly attempt

 less file.pdf


which will certainly show the result of pdftotext in less.

66
2022-06-07 15:57:35
Source

I presume, it is not feasible to see PDF documents in terminal yet you can examine it is material by transforming PDF documents to message. You can do this as:

pdftotext a.pdf


It will certainly generate a.txt documents which you can read right into VIM.

For ubuntu - version, this binary is readily available in adhering to plan.

poppler-utils

28
2022-06-07 15:40:03
Source

Related questions