Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-20-2018, 09:48 AM   #1
LQ Newbie
Registered: Aug 2016
Location: Belgium
Distribution: debian & linuxmint
Posts: 2

Rep: Reputation: Disabled
pdf conversion pdftotext

I am trying to convert a pdf document into a text file.
The pdf document is perfectly readable with Evince. Every char is correctly displayed.
When I am using pstotext the ouput is readable execpted some char like "-,,,,...)
When I am using pdftotext the output is totaly garbled/unreadbale.
I did try with different encryption:
pdftotext -enc UTF-8 somepdffile.pdf
But the text output is still unreadable.
Any idea about what I am doing wrong with pdftotext ?
Old 02-20-2018, 05:22 PM   #2
Senior Member
Registered: Mar 2010
Distribution: Slackware
Posts: 1,032

Rep: Reputation: 166Reputation: 166
What you report sounds like the file is PS, not PDF. What does 'file' report?
Old 03-01-2018, 11:46 AM   #3
LQ Newbie
Registered: Aug 2016
Location: Belgium
Distribution: debian & linuxmint
Posts: 2

Original Poster
Rep: Reputation: Disabled
That is it !

I am now using "pstotext" for the conversion and the conversion is successful.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert a PDF in Czech language with right characters with PDFTOTEXT? Xeratul Linux - Software 4 06-23-2017 01:06 AM
[SOLVED] pdftotext 0.20.2: pdftotext *.pdf gives syntax error. stf92 Slackware 6 01-22-2015 02:34 PM
PDF to html conversion? fargris Linux - Software 10 11-19-2013 09:25 AM
PDF to Text Conversion limnephilidae Programming 5 01-03-2012 09:22 AM
PS to PDF conversion. binoykr SUSE / openSUSE 2 02-21-2007 10:26 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration