View Single Post
Old 05-12-2017, 01:13 PM   #138
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,475
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The problem seems to be pdfinfo is returning non UTF-8 data on your system, despite passing the -enc UTF-8 option to it. Probably a bug in this version of poppler (which is where pdfinfo comes from).

Can you run the followoing in the direcotory containing the pdf file

Code:
calibre-debug -c "from calibre.ebooks.metadata.pdf import *; pdfinfo, pdftoppm = get_tools(); subprocess.call([pdfinfo, '-enc', 'UTF-8', 'UTP1007.pdf'])" > output.txt
and post the output.txt file for me to look at.
kovidgoyal is offline   Reply With Quote