6

I have a PDF file (copyrighted, so I can't include it here). I'm trying to convert it to DjVu, using some online websites as well as pdf2djvu, but they all fail. In the case of pdf2djvu, the error was:

PDF error: FoFiType1::parse a line has more than 255 characters, we don't support this

Is there any way around this? How do I deal with PDF to DjVu conversion problems?

1
  • Removed comments since the OP has already seen them and they were specific to the one file Jun 15, 2013 at 6:32

1 Answer 1

6

This is caused by limitations in the version of libpoppler that pdf2djvu is using, triggered by specific fonts, and because of the way pdf2djvu handles them.

Opening such a file in evince (from an X based terminal) will show you the same error messages with FoFiType1 under Ubuntu 12.04. Since evince ignores the errors it can display the file.

What you can do on 12.04 is convert the file to postscript, then back to pdf, then run pdf2djvu:

pdf2ps all.pdf
ps2pdf all.ps all2.pdf
pdf2djvu all2.pdf -o all2.djvu

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .