[Techtalk] PDF to txt

Kathryn Andersen kat_lists at katspace.com
Sat Oct 23 13:17:56 EST 2004

On Sat, Oct 23, 2004 at 12:52:14PM -0700, Noir wrote:
> I been trying to convert PDF file to plaintext.
> $pdf2ps filename.pdf output.ps
> $ps2ascii filename.ps output.txt
> Output: txt file.
> But the problem is there's nothing inside the file. It's all garbage like 
> lots of @@@@. 

Have you tried using the "pdftotext" program instead?
On Debian it is part of the xpdf-utils package; I can't speak for other

Kathryn Andersen
Q:	How many existentialists does it take to screw in a light bulb?
A:	Two.  One to screw it in and one to observe how the light bulb
	itself symbolizes a single incandescent beacon of subjective
	reality in a netherworld of endless absurdity reaching out toward a
	maudlin cosmos of nothingness.
 _--_|\     | Kathryn Andersen	<http://www.katspace.com>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe

More information about the Techtalk mailing list