Novell is now a part of Micro Focus

Converting a PDF to a text file

Novell Cool Solutions: Tip
By Richard van Kampen

Digg This - Slashdot This

Posted: 11 Aug 2005

Ever been in a bind where you need to retrieve the text from a PDF file, but are unable to do so because of the PDF's inability to let you? You might be interested in a little program called pdftotext.

getting it

pdftotext is part of the xpdf package, so in order to use it you'll have to have xpdf installed.

using it

To change a pdf file to plain text, type in your console:

pdftotext [options] file.pdf file.txt

To break down the previous line, pdftotext is the command, [options] are optional parameters for the program (you can type 'man pdftotext' for a list of options), file.pdf is the pdf file you want to convert to text and file.txt is the filename you want to use to output the plain text to.

And there you have it! Easily copied plain text straight from an uncopyable PDF file.

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions.

© Copyright Micro Focus or one of its affiliates