|
|
Log in / Subscribe / Register

epub -> PDF

epub -> PDF

Posted Oct 27, 2016 18:00 UTC (Thu) by mchehab (subscriber, #41156)
In reply to: epub -> PDF by tsr2
Parent article: A report from the documentation maintainer

> So, if the epub output is satisfactory, would calibre's ebook convert be a relatively easy way to produce satisfactory PDF output from the epub?

Just for fun, I tried to convert the epub book with calibre (version 2.60.0). It failed:

Rendering failed
Traceback (most recent call last):
File "/usr/lib64/calibre/calibre/ebooks/pdf/render/from_html.py", line 279, in render_html
self.do_paged_render()
File "/usr/lib64/calibre/calibre/ebooks/pdf/render/from_html.py", line 405, in do_paged_render
amap['anchors'])
File "/usr/lib64/calibre/calibre/ebooks/pdf/render/engine.py", line 335, in add_links
self.pdf.links.add(current_item, start_page, links, anchors)
File "/usr/lib64/calibre/calibre/ebooks/pdf/render/links.py", line 41, in add
a[anchor] = Destination(start_page, pos, self.pdf.get_pageref)
File "/usr/lib64/calibre/calibre/ebooks/pdf/render/links.py", line 22, in __init__
pref = get_pageref(pnum-1)
File "/usr/lib64/calibre/calibre/ebooks/pdf/render/serialize.py", line 303, in get_pageref
return self.page_tree.obj.get_ref(pagenum)
File "/usr/lib64/calibre/calibre/ebooks/pdf/render/serialize.py", line 187, in get_ref
return self['Kids'][num-1]
IndexError: list index out of range


to post comments

epub -> PDF

Posted Nov 4, 2016 13:37 UTC (Fri) by Wol (subscriber, #4433) [Link]

I'm pretty certain I've tried to use calibre on epubs. And given up.

The fewer steps and tools you need, the better. The less room for a fsck-up, the better.

Cheers,
Wol


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds