[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#33868] [PATCH] gnu: calibre: Fix PDF to EPUB conversion.

From: Marius Bakke
Subject: [bug#33868] [PATCH] gnu: calibre: Fix PDF to EPUB conversion.
Date: Sat, 12 Jan 2019 00:19:54 +0100
User-agent: Notmuch/0.28 ( Emacs/26.1 (x86_64-pc-linux-gnu)

Mathieu Othacehe <address@hidden> writes:

> When trying to convert a PDF to EPUB, the following error occurs:
>   File 
> "/gnu/store/kz6bgqw9z7akj11zh20wkx14cgq0s3n2-calibre-3.35.0/lib/calibre/calibre/ebooks/pdf/",
>  line 76, in pdftohtml
>     _('Could not find pdftohtml, check it is in your PATH'))
> Move poppler which provides pdftohtml from inputs to propagated-inputs to fix 
> it.
> * gnu/packages/ebook.scm (calibre)[inputs]: Move poppler from here ...
> [propagated-inputs]: ... to here.

An less intrusive solution would be to substitute the absolute path to
'pdf2html' in a build step.  I.e.:

(substitute* "lib/calibre/calibre/ebooks/pdf/"
  (("PDFTOHTML = \"pdftohtml\"")
   (string-append "PDFTOHTML = \"" (assoc-ref inputs "poppler")

Either approach is fine by me, but please leave a comment about why
Poppler is propagated if you go that route :-)

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]