Instructables

Ereader is optional by using your portable music player and Linux.

Picture of Ereader is optional by using your portable music player and Linux.
There are many free ebooks (use you favorite web search engine to search for ebooks or .pdf)  out there and e-readers are really nice but there has to be a better way. I just can not see spending hundreds of dollars just to read a book. What I propose is to listen to your books instead of reading them.  This will not work with all ereader (aka pdf) files.  Most free ones though should. What is also nice is that you can make your own notes then save them to a text file for listening later. You can even make your own podio books. Possible way of making extra money if they sell.

Note: this instructable required the use of the command line. which you can find at Applications menu > Accessories > Terminal.
 
Remove these adsRemove these ads by Signing Up

Step 1: Adding a bit of software (with Ubuntu).

Picture of Adding a bit of software (with Ubuntu).
You can go to the Ubuntu Software center and install xpdf.
You can do the same with the Synaptic package manager.

Or use the old command line with:
$ sudo apt-get install xpdf

xpdf will be one of two workhorses we will use.
text2wave is another workhorse, but it comes standard and no need to install.  You may want to look at the documentation for text2wave with man or gman (has to be installed).

Step 2: Creating a text file from the pdf.

Picture of Creating a text file from the pdf.
oo.png
oo1.png
Go to the command line and change to the directory where the pdf file is. I save mine to root to make it easier.

$ pdftotext inputfile.pdf outputfile.txt

# Optional: split the text file into smaller portions if you want to for manageable listening.

Test.pdf is the pdf file I created with openoffice. Just wanted to create a small pdf file to deal with for this demo.

So for me I typed.
$ pdftotext test.pdf test.txt

This command created an additional file from the pdf file into what is known as a non-formatted plain text or ascii file. This was quick for such a small pdf file. larger files will take longer.

To make sure a file was created , so I displayed the output file.

cat test.txt.

So far so good.
rimar20003 years ago
Very clever!

I use my GPS as text reader/editor. It is not the best way, but it is cheap and easy.
Computothought (author)  rimar20002 months ago

Cool.