Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Newbie > [SOLVED] Howto Read pdf in a bash shell???

Forgot Password?
 Linux Newbie   If you're new to the wonderful world of Linux, start here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 06-21-2009   #1 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 11
[SOLVED] Howto Read pdf in a bash shell???

well is there any utility to read a pdf file in BASH shell??? if anything exists do let me know!!!
reloadedreiko is offline  


Old 06-21-2009   #2 (permalink)
Content Team
 
L4Linux's Avatar
 
Join Date: Sep 2008
Location: Greece
Posts: 577
You mean only to display the text inside the PDF in the terminal???
That would be a hard thing to do, since PDF has a ton of data other than the text inside. For an ODF file it would be easier I think, something like an xml parser that would retrieve the user inputed data. It all comes down to specifications. But it may be possible already (since PDF became an ISO standard), I am not an expert by any means.

If you mean launching the viewer from the terminal:
Code:
evince pdf_name.pdf
or
Code:
okular pdf_name.pdf
or whatever program you want to use.
__________________
folding@home
HELP RESEARCH AGAINST CANCER. It is very easy and won't cost you anything.
L4Linux is offline  
Old 06-21-2009   #3 (permalink)
Super Moderator
 
ozar's Avatar
 
Join Date: May 2004
Posts: 12,025
Welcome to the forums!

If you want to read pdf files from the console, you could install pdftohtml and use it to convert the files, then read the files with a text browser such as elinks or lynx
__________________
oz

New Members: * README *
ozar is offline  
Old 06-21-2009   #4 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,045
There is fbgs, which is part of the fbida project, described on the website "A wrapper script for viewing ps/pdf files on the framebuffer console using fbi."

fbida homepage

fbgs(1) - Linux man page
reed9 is offline  
Old 06-22-2009   #5 (permalink)
Linux Guru
 
Rubberman's Avatar
 
Join Date: Apr 2009
Location: I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Posts: 2,528
And there is always Adobe's Acrobat reader, acroread. Version 9.1.1 for Linux is available and works just great in just about any X-Windows desktop environment.
__________________
Sometimes, real fast is almost as good as real time.
Rubberman is offline  
Old 06-24-2009   #6 (permalink)
Banned
 
Join Date: Jun 2009
Posts: 68
To directly change a pdf to a text file, pdftotext, then you could read that using less or whatever ... don't know how well it works.
nopycckn is offline  
Old 06-25-2009   #7 (permalink)
Linux Engineer
 
Freston's Avatar
 
Join Date: Mar 2007
Location: The Netherlands
Posts: 826
Quote:
Originally Posted by nopycckn
To directly change a pdf to a text file, pdftotext, then you could read that using less or whatever ... don't know how well it works.
Oh wow! Thanks! I had not even thought it was possible. But I see now it's part of xpdf so I think it'll be installed on most *nix boxen. It came with my distro (Slackware) and it's amazingly fast too.
__________________
Can't tell an OS by it's GUI
Freston is offline  
Old 06-25-2009   #8 (permalink)
Linux Guru
 
Rubberman's Avatar
 
Join Date: Apr 2009
Location: I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
Posts: 2,528
All the tools in the Linux toolbox are truely awesome. It's kind of like a master mechanic - you can't just ask for a screwdriver because there are some many types; flat-bladed, phillips, posidrive, torx, hex, butterfly, magnetic, right-angle, left-angle (joke), flexible shaft, and on and on, not to mention all the above in various sizes. I have screwdrivers with blades so small you need a magnifying glass to see them, and ones so big that you can use them for serious sword play (I was a master mechanic before I became an engineer).
__________________
Sometimes, real fast is almost as good as real time.
Rubberman is offline  
Old 06-30-2009   #9 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 11
Hey guys thanks a lot!!! for ur replies!! I used pdf2text tool and it worked well!!!! thanks a lot once again!!!!!
reloadedreiko is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:51 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2