LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 10-03-2006, 04:32 PM   #1
Tux-O-Matic
Member
 
Registered: Sep 2006
Distribution: Fedora Core 5 (no internet)
Posts: 95

Rep: Reputation: 15
Exclamation PDF to Command line format


I'm looking for some sort of software to convert a pdf (or other file that's not formatted to the command line) into command-line format.
I mean for Linux...
 
Old 10-03-2006, 04:57 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,901

Rep: Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746
What do you mean by command line format? ASCII text?
Have you googled for pdf text converter?
 
Old 10-03-2006, 05:03 PM   #3
Tux-O-Matic
Member
 
Registered: Sep 2006
Distribution: Fedora Core 5 (no internet)
Posts: 95

Original Poster
Rep: Reputation: 15
I want to be able to view PDF's in a command line window without having to buy that expensive "PDF to Text (pdf2text) SDK-COM" converter.
And I would like it to be a bash command.
 
Old 10-03-2006, 05:20 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,901

Rep: Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746Reputation: 746
AFAIK a PDF console viewer does not exist. However, xpdf contains console tools to convert a pdf file to html (pdftohtml) or text (pdftotext).

http://freshmeat.net/projects/xpdf/
 
Old 10-04-2006, 06:32 AM   #5
Garda
Member
 
Registered: May 2005
Distribution: Debian
Posts: 83
Blog Entries: 2

Rep: Reputation: 15
i'm sure that there are many tools that let you convert pdf files into html files. There would probably also be some (probably fewer) tools to convert pdf to plain text.

you can view html files in the command line using lynx and text files can easily be read with a text editor or simply cat

try something like

Code:
cat textfile.txt | less
that should let you look at text files from the command line
 
Old 10-04-2006, 06:56 AM   #6
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Rep: Reputation: 30
Quote:
Originally Posted by Garda
Code:
cat textfile.txt | less
that should let you look at text files from the command line
I'm not tatally sure what the commands actually mean, but in my experience just
Code:
less textfile.txt
does exactly the same thing with less code.
 
Old 10-04-2006, 07:05 AM   #7
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
try
Code:
pdf2ps some_file.pdf some_file.ps && ps2ascii some_file.ps | less
edit: it seems I also have a command pdftotext, which does the same as above, but without needing to output to a ps file.

Last edited by pwc101; 10-04-2006 at 07:30 AM.
 
  


Reply

Tags
command, convert, line, pdf, program


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert doc to pdf in command line yumener Linux - Software 4 04-28-2006 08:23 AM
command line text to pdf conversion waskelton4 Linux - Software 4 02-14-2005 05:38 PM
How can I read pdf files at the command line? hansi umayangan Linux - General 8 09-02-2004 07:27 AM
print files in PDF or html format from the linux command line IBKnobel Linux - Software 3 07-12-2004 09:29 PM
converting files to pdf format? vendemmian Linux - General 2 05-23-2001 07:52 AM


All times are GMT -5. The time now is 11:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration