GNU bug report logs -
#33868
[PATCH] gnu: calibre: Fix PDF to EPUB conversion.
Previous Next
Reported by: Mathieu Othacehe <m.othacehe <at> gmail.com>
Date: Tue, 25 Dec 2018 11:45:01 UTC
Severity: normal
Tags: patch
Done: Mathieu Othacehe <m.othacehe <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 33868 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Sat, Jan 12, 2019 at 12:19:54AM +0100, Marius Bakke wrote:
> Mathieu Othacehe <m.othacehe <at> gmail.com> 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/pdftohtml.py", 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.py"
> (("PDFTOHTML = \"pdftohtml\"")
> (string-append "PDFTOHTML = \"" (assoc-ref inputs "poppler")
> "/bin/pdftohtml\"")))
>
> Either approach is fine by me, but please leave a comment about why
> Poppler is propagated if you go that route :-)
I think this substitution is the better solution.
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 6 years and 180 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.