08-12-2009
pdftotext / PDF conversion to .txt binaries
Good day,
I've been trying to look for a way to compile the Xpdf sources in our HP-UX server, but have been failing to do so because there is no GCC installed, and I don't have privileges to install GCC. I was looking for a functionality to convert PDF files to .txt, which is exactly like the one described in XPDF:
Xpdf: Download
But they do not have a download of the binaries for HP-UX. They did mention that there has been some who have successfully compiled it for HP-UX. If anyone has downloadable binaries for HP-UX for pdftotext, then I would really appreciate it.
10 More Discussions You Might Find Interesting
1. AIX
Hi Gurus,
We are currently using a JAVA program that enables us to use some forms and convert them from PDF to print them postscript. It works great except that everytime it runs JAVA sucks 100% of the CPU.
What can I do to reduce the impact?
I am looking at:
1. Nice the java... (1 Reply)
Discussion started by: Luck
1 Replies
2. Shell Programming and Scripting
Hi,
I have a pdf file. i want to convert it to text file and do some work on it and later want to convert it back to pdf. Can this be done via unix?
or
Is there a way unix can directly work on PDF file? (2 Replies)
Discussion started by: saltysumi
2 Replies
3. Shell Programming and Scripting
My folder contains many files with .ps extensions. How to convert all of these to .pdf at a time using a shell script /command.
Help me. (1 Reply)
Discussion started by: hravisankar
1 Replies
4. Shell Programming and Scripting
Hi!
I need to realize this task.
In folder i have such files:
name1.txt
name1.pdf
name2.txt
name2.pdf
etc...
I want to scan this folder, match files with same name (name1.txt with name1.pdf, name2.txt with name2.pdf) and create files name1.xml and name2.xml, based on it. i.e:
i want... (13 Replies)
Discussion started by: optik77
13 Replies
5. UNIX and Linux Applications
I am trying to find a way to convert a Word doc saved in the XML format to a PDF file (that looks like the original Word doc). Yes, there are all kinds of ways to do this interactively. What I need is something that can be run as a background process so that when XML files are placed in a... (0 Replies)
Discussion started by: garzon
0 Replies
6. UNIX for Advanced & Expert Users
Hi Guys,
My OS is Suse Linux.. Is there a Command to convert PDF file to Text??
Cheers!!!!! (2 Replies)
Discussion started by: mac4rfree
2 Replies
7. UNIX for Dummies Questions & Answers
I have a directory having a number of pdf files.
I want to convert all the files to text, stored in a single text file
The following creates multiple text files
ls *.pdf | xargs -n1 pdftotext (1 Reply)
Discussion started by: kristinu
1 Replies
8. Shell Programming and Scripting
wget -i genedx.txt
The code above will download multiple pdf files from a site, but how can i download and convert these to .txt?
I have attached the master list (genedx.txt - which contains the url and file names)
as well as the two PDF's that are downloaded. I am trying to have those... (7 Replies)
Discussion started by: cmccabe
7 Replies
9. Red Hat
Hello friends,
I need to convert ASCII text to PDF on RHEL 6 so I did the below and could generate PDF but it has lot of junk/special characters.
yum install enscript ghostscript
enscript -p output.ps input.txt
ps2pdf output.ps output.pdf
So I download latest source of Ghostscript... (4 Replies)
Discussion started by: magnus29
4 Replies
10. Solaris
Hello Unix gurus,
I am learning unix. I have lots pdf data files. I need to convert them into txt files. Can you please guide me how to do that?
Thanks in advance.
Rao (1 Reply)
Discussion started by: raopatwari
1 Replies
LEARN ABOUT REDHAT
pdftopbm
pdftopbm(1) General Commands Manual pdftopbm(1)
NAME
pdftopbm - Portable Document Format (PDF) to Portable Bitmap (PBM) converter (version 2.01)
SYNOPSIS
pdftopbm [options] PDF-file PBM-root
DESCRIPTION
Pdftopbm converts Portable Document Format (PDF) files to black-and-white image files in Portable Bitmap (PBM) format.
Pdftopbm reads the PDF file, PDF-file, and writes one PBM file for each page, PBM-root-nnnnnn.pbm, where nnnnnn is the page number.
CONFIGURATION FILE
Pdftopbm reads a configuration file at startup. It first tries to find the user's private config file, ~/.xpdfrc. If that doesn't exist,
it looks for a system-wide config file, typically /etc/xpdfrc (but this location can be changed when pdftopbm is built). See the xpdfrc(5)
man page for details.
OPTIONS
Many of the following options can be set with configuration file commands. These are listed in square brackets with the description of the
corresponding command line option.
-f number
Specifies the first page to convert.
-l number
Specifies the last page to convert.
-r number
Specifies the resolution, in DPI. The default is 150 DPI.
-opw password
Specify the owner password for the PDF file. Providing this will bypass all security restrictions.
-upw password
Specify the user password for the PDF file.
-q Don't print any messages or errors. [config file: errQuiet]
-v Print copyright and version information.
-h Print usage information. (-help and --help are equivalent.)
BUGS
Pdftopbm uses X to do the rendering, so it is limited by the capabilities and performance of the X server. In particular, high-resolution
output requires lots of memory. Also, non-scalable fonts will not look great.
EXIT CODES
The Xpdf tools use the following exit codes:
0 No error.
1 Error opening a PDF file.
2 Error opening an output file.
3 Error related to PDF permissions.
99 Other error.
AUTHOR
The pdftopbm software and documentation are copyright 1996-2002 Glyph & Cog, LLC.
SEE ALSO
xpdf(1), pdftops(1), pdftotext(1), pdfinfo(1), pdffonts(1), pdfimages(1), xpdfrc(5)
http://www.foolabs.com/xpdf/
05 December 2002 pdftopbm(1)