less command is unable to show pdf file in cygwin/mingw

1

I use less to read pdf in linux. While either in mingw or cygwin, less is unable to show pdf in the right way. looks encoding issue. Any help? thank you!

bbc

Posted 2014-05-13T13:59:07.097

Reputation: 113

I doubt our opening statement. less is useless for reading PDFs, wherever you are. – reinierpost – 2014-05-13T14:17:02.463

you could read pdf with no issue with less under linux. it supports lots of file types. picture, iso, pdf, etc. – bbc – 2014-05-13T19:44:22.547

1wow, I didn't know that – reinierpost – 2014-05-14T09:45:35.223

Answers

2

By itself, less is only a text pager, and will show gibberish for binary files. However, some Linux systems are configured by default to use lesspipe or similar tools to present many types of binary data in some fashion. Cygwin is not so configured by default, but it can be by installing lesspipe; a package is available in Cygwin Ports.

Yaakov

Posted 2014-05-13T13:59:07.097

Reputation: 733