LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: Disabled
pdf conversion pdftotext


Hello,
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
Latin1
Latin2
...
But the text output is still unreadable.
Any idea about what I am doing wrong with pdftotext ?
 
Old 02-20-2018, 04:22 PM   #2
RandomTroll
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 957

Rep: Reputation: 157Reputation: 157
What you report sounds like the file is PS, not PDF. What does 'file' report?
 
Old 03-01-2018, 10:46 AM   #3
aclarck
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.

Thanks.
 
  


Reply


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 12:06 AM
[SOLVED] pdftotext 0.20.2: pdftotext *.pdf gives syntax error. stf92 Slackware 6 01-22-2015 01:34 PM
PDF to html conversion? fargris Linux - Software 10 11-19-2013 08:25 AM
PDF to Text Conversion limnephilidae Programming 5 01-03-2012 08:22 AM
PS to PDF conversion. binoykr SUSE / openSUSE 2 02-21-2007 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:16 PM.

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