I love Vifm. One of the features I like the most it that you can easily preview any text file by pressing the e key. But I would also like to preview a PDF directly in Vifm without having to start up a GUI viewer. The trick is to use an application that will output the PDF's text directly to the console.
I started looking for such an application when I came across this post from StackOverflow. It seems that good-old less can already do that. So, I added the following line to my vifmrc file.
fileviewer *.pdf
\ less "%c",
I can now preview PDF files in Vifm and it works pretty well.