Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
batch convert pdf to text
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
D-LINC
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2011
Posts: 135
Location: Alaska

PostPosted: Wed Jan 02, 2013 3:19 am    Post subject: batch convert pdf to text Reply with quote

Hi. Is there a tool in Portage for batch conversion of pdf to text? The only thing I have been able find searching with eix is pstotext, but I'm not willing to use it because it isn't free software (PSTT license). I thought libreoffice was supposed to do batch conversion from the command line (with the --convert-to flag) but it hangs every time I try.
_________________
frigidcode.com
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Wed Jan 02, 2013 5:19 am    Post subject: Reply with quote

D-LINC,

Did you look into pdftotext :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2448
Location: Germany

PostPosted: Wed Jan 02, 2013 5:41 am    Post subject: Reply with quote

I've had some good results with pdftohtml / pdftotext (poppler) but never without manually adapting the output afterward. PDF is just not suitable for conversions like this, it's more an image format than a text really. If the PDF is not overwrought with images you may even get better results using an OCR software.

For batch processing and conversion into various text/book formats you could have a peek at calibre. I never get any good results for PDF with it (it also uses pdftohtml, but it's harder to adapt to custom needs), but some people have more luck with it than I.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum