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 CENTOS
module::install::par
Module::Install::PAR(3) User Contributed Perl Documentation Module::Install::PAR(3)
NAME
Module::Install::PAR - Module::Install Support for PAR::Dist packages
SYNOPSIS
To offer your users the possibility to install binaries if we cannot compile an XS version of the module, you could use this simplistic
stub:
use inc::Module::Install;
name 'Foo';
all_from 'lib/Foo.pm';
# Which CPAN directory do we fetch binaries from?
par_base 'SMUELLER';
unless ( can_xs ) {
my $okay = extract_par( fetch_par );
if (not $okay) {
die "No compiler and no binary package found. Aborting.
";
}
}
WriteAll;
DESCRIPTION
This module adds a couple of directives to Module::Install related to installing and creating PAR::Dist distributions.
par_base
This directive sets the CPAN ID from whose CPAN directory to fetch binaries from. For example, you can choose to download binaries from
http://www.cpan.org/authors/id/S/SM/SMUELLER/ or its ftp counterpart by writing:
par_base 'SMUELLER';
By default, the name of the file to fetch is generated from the distribution name, its version, your platform name and your perl version
concatenated with dashes.
The directive, however, takes an optional second argument which specifies the name of the file to fetch. (Though "par_base" does not fetch
files itself, see below.)
par_base 'SMUELLER', 'foo';
Once "fetch_par" is called, the file 'foo' will be downloaded from SMUELLER's CPAN directory. (It doesn't exist.)
The second argument could be used to fetch platform-agnostic binaries:
par_base 'SMUELLER', "Some-Distribution-0.01.par";
(Documentation TODO: Use the previously defined distribution name and version in example.)
fetch_par
Fetches the .par file previously referenced in the documentation of the "par_base" directive.
"fetch_par" can be used without arguments given the "par_base" directive was used before. It will return the name of the file it fetched.
If the first argument is an URL or a CPAN user ID, the file is fetched from that directory unless an URL has been previously set. (Read
that again.)
If the second argument is a file name it is used as the name of the file to download.
If the file could not be fetched, a suitable error message about no package being available, yada yada yada, is printed. You can turn this
off by specifying a true third argument.
# Try to fetch the package (see par_base) but
# don't be verbose about failures
my $file = fetch_par('', '', undef);
extract_par
Takes the name of a PAR::Dist archive file as first argument. The 'blib/' directory of this archive is extracted and the 'pm_to_blib' is
created.
Typical shorthand usage:
extract_par( fetch_par ) or die "Could not install PAR::Dist archive.";
make_par
This directive requires PAR::Dist (version 0.03 or up) on your system. (And checks that it is available before continuing.)
Creates a PAR::Dist archive from the 'blib/' subdirectory.
First argument must be the name of the PAR::Dist archive to create.
If your Makefile.PL has a "par_base" directive, the "make par" make target will be available. It uses this "make_par" directive internally,
so on your development system, you can do this to create a .par binary archive for your platform:
perl Makefile.PL
make
make par
AUTHOR
Audrey Tang <cpan@audreyt.org>
With documentation from Steffen Mueller <smueller@cpan.org>
COPYRIGHT
Copyright (c) 2006. Audrey Tang.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
perl v5.16.3 2012-03-01 Module::Install::PAR(3)