LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-03-2014, 06:01 PM   #1
kjcook
LQ Newbie
 
Registered: Aug 2014
Posts: 5

Rep: Reputation: Disabled
pdftotext returns "Illegal entry in bfchar block in ToUnicode CMap


I am trying to convert several PDF files to text. I have tried the following commands all of which return the same errors.

pdftotext 085318.pdf
pdftotext -layout 085318.pdf
pdftotext -layout -enc ASCII7 085318.pdf
pdftotext -enc ASCII7 085318.pdf


Error: Illegal entry in bfchar block in ToUnicode CMap
Error: Illegal entry in bfchar block in ToUnicode CMap
Error: Illegal entry in bfchar block in ToUnicode CMap
Error: Illegal entry in bfchar block in ToUnicode CMap
...

Any ideas what I am doing wrong?
 
Old 09-05-2014, 01:43 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 15,087

Rep: Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090
You may not be doing anything wrong. If the pdf is Unicode, it will be using the full 8 bits whereas plain old ascii uses 7 bits. It can handle and dialect - some dweeb even coded in Klingon.

try pdffonts /path/to/pdf and have a look at what it's using

I never found the pdftotext option to be much use, and avoid it as it doesn't seem to manage as well as some of the other pdf tools. Text is very limited beside pdf, and linux had to be dragged kicking and screaming into Unicode anyhow - I remember the battles. It works well for those with an odd locale like myself (en_ie.utf8).
 
  


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
gigabyte U7300 "edit Makefile" command returns "error" drobin Linux - Newbie 8 09-04-2013 04:20 AM
LXer: Mega-victory: Kim Dotcom search warrants "invalid," mansion raid "illegal" LXer Syndicated Linux News 0 07-11-2012 02:30 AM
[SOLVED] "Insert" & "Delete" key returns "~" in a terminal. sharky Linux - General 15 04-26-2011 08:36 AM
fsck.ext3 keeps fails with "Error reading block" short read at same block jpletka Linux - Server 2 06-10-2010 02:46 AM
illegal bitmap block(s) HOHCEHC Linux - General 0 05-04-2004 09:07 PM

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

All times are GMT -5. The time now is 03:38 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
Open Source Consulting | Domain Registration