How to read pdf file in UNIX environment?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to read pdf file in UNIX environment?
# 1  
Old 02-24-2009
Data How to read pdf file in UNIX environment?

Hi,
I had a PDF file in Windows, I ftp'ed it to UNIX environment. Now, I couldnot read the same file in the UNIX environment. Is there any possible way to read this file? I need to give this file as input

Thanks,
Geetha
# 2  
Old 02-24-2009
What program are you using to read the PDF on UNIX? Which UNIX, while we're at it? And what do you mean by "I need to give this file as input"?
# 3  
Old 02-24-2009
hi,
I'm using SunOS. I just ftp'ed pdf file to unix box from windows... Need to give this file as input to a shell script... Is there any possible way to convert this PDF file to readable text format in the unix box?
Thanks,
Geetha
# 4  
Old 02-24-2009
Quote:
Originally Posted by iamgeethuj
hi,
I'm using SunOS. I just ftp'ed pdf file to unix box from windows... Need to give this file as input to a shell script... Is there any possible way to convert this PDF file to readable text format in the unix box?
Thanks,
Geetha
Are you implying that PDF is not readable?
You should be able find plenty of the PDF converters using Google.
# 5  
Old 02-24-2009
A better question would be:

Why would you routinely use PDF formatted files as input into a script?

If you're spending time trying to automate some process, than you should look at replacing PDF with some other kind of document. Or possibly generate an additional file along side the PDF's for use by your script.

Sure, you can read PDF files from a command line, but it's rarely a good solution. If you must read PDF's from a unix command line, see if your system has these commands:

pdf2txt
pdf2ps
ps2ascii

pdf2txt - converts from PDF to text
pdf2ps - converts from PDF to Postscript
ps2ascii - converts from Postscript to ASCII text

If you can't find pdf2txt, then you could try using the other two to do the same thing.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Cannot read PDF emailed by HP-UX server

I have a very strange issue. Now that we have a lot of our users using iPads to read statements, this is becoming more of an issue. We have some financial statements that are generated into PDF format by an application that runs in HP-UX, and then we use uuencode to attach the statements to the... (4 Replies)
Discussion started by: lawadm1
4 Replies

2. Shell Programming and Scripting

Unable to read Environment Variable

Hi I have created the following shell script file with the following content. #!/bin/csh set VAR1="abcxyz" << EOF EOF echo "---------------------" echo "VAR1 = $VAR1" echo "---------------------" i am not able to echo the previously set VAR1. Can any one suggested what could be wrong?... (5 Replies)
Discussion started by: srinu_b
5 Replies

3. UNIX for Dummies Questions & Answers

how to print a PDF file in UNIX

on a PROGRESS environment, i create an invoice which at printing it must generate both the .dat for the invoice that was sent to the printer and the .dat for the PDF version. we have never printed PDF files in our lp printer until recently. i've done a bit of googling and it comes down to that i... (2 Replies)
Discussion started by: pdf2ps
2 Replies

4. Shell Programming and Scripting

Batch job in unix server to move the pdf file from unix to windows.

Hi Experts, I have a requirement where i need to setup a batch job which runs everymonth and move the pdf files from unix server to windows servers. Could some body provide the inputs for this. and also please provide the inputs on how to map the network dirve in the unix like that... (1 Reply)
Discussion started by: ger199901
1 Replies

5. Shell Programming and Scripting

Environment Variables in text file and read command

I cannot get the following substitution ($ORACLE_SID) to work: The variable ORACLE_SID is set to wardin my environment. It has been exported. I have a text file called test.dat: /u07/oradata/${ORACLE_SID}/extab/finmart/summit/ps_voucher_line_crnt_ex.dbf... (2 Replies)
Discussion started by: bradyd
2 Replies

6. Programming

Uncompress a gzip and bzip file using java on unix solaris environment

Hi, I need to uncompress a gzip and bzip file using java on unix solaris environment. I also need to retreive the header information of the file inorder to differentiate between gzip and bzip file. Please help Pooja (0 Replies)
Discussion started by: wadhwa.pooja
0 Replies

7. Shell Programming and Scripting

FORMAT OF CSV FILE under unix environment.

hi I unload the table results from oracle to csv file foramt. i need increse the width of each column using unix commands could you pl tell me how to increase the width of each column to spefic width uisng sed unix command or na other unix commands i have file name called report.csv inside... (38 Replies)
Discussion started by: raosurya
38 Replies

8. UNIX for Dummies Questions & Answers

Using gv to read the pdf file.

Sometimes the gv does work well.But sometimes it doesn't work. The error message: ... error:/undefined in /GBpc-EUC-H ... Can anybody help me? Thanks. (2 Replies)
Discussion started by: new_hand
2 Replies

9. UNIX for Dummies Questions & Answers

Someone used ghostview to read the pdf files?

How can I open the page that I want to read when I used ghostview to read the pdf files? Thanks. (0 Replies)
Discussion started by: new_hand
0 Replies

10. UNIX for Dummies Questions & Answers

How to view ps and pdf file under unix

Hello, I'd like to view ps and pds file under Unix(Xwindow) who could tell me the which software/command can work? Thanks! Vicky (2 Replies)
Discussion started by: vicky20000
2 Replies
Login or Register to Ask a Question