epub to pdf error

Bug #1783563 reported by mike sobolev on 2018-07-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Ubuntu 16.04.5 LTS
calibre 3.28.0

Rendering epub to pdf:

/opt/calibre/ebook-convert ./meth-fixed.epub ./new.pdf -v
Conversion options changed from defaults:
  verbose: 1
1% Converting input to HTML...
InputFormatPlugin: EPUB Input running
on /media/sf_mikeftp/epub/meth-fixed.epub
Parsing all content...
Parsing OEBPS/Text/page_9.xhtml ...
Parsing OEBPS/Text/page_77.xhtml ...
Parsing OEBPS/Text/page_8.xhtml ...
Parsing OEBPS/Text/page_15.xhtml ...
Parsing OEBPS/Text/page_79.xhtml ...
Parsing OEBPS/Text/page_18.xhtml ...
Parsing OEBPS/Text/page_11.xhtml ...
Parsing OEBPS/Text/page_39.xhtml ...
Parsing OEBPS/Text/page_12.xhtml ...
Parsing OEBPS/Text/page_17.xhtml ...
Parsing OEBPS/Text/page_10.xhtml ...
Parsing OEBPS/Text/page_26.xhtml ...
Parsing OEBPS/Text/page_69.xhtml ...
Parsing OEBPS/Text/page_19.xhtml ...
Parsing OEBPS/Text/page_13.xhtml ...
Parsing OEBPS/Text/page_20.xhtml ...
Parsing OEBPS/Text/page_16.xhtml ...
Parsing OEBPS/Text/page_14.xhtml ...
Parsing OEBPS/Text/page_49.xhtml ...
Parsing OEBPS/Text/page_58.xhtml ...
Parsing OEBPS/Text/toc.xhtml ...
Parsing OEBPS/Text/page_60.xhtml ...
Parsing OEBPS/Styles/style.css ...
Parsing OEBPS/Text/page_1.xhtml ...
Parsing OEBPS/Text/page_21.xhtml ...
Parsing OEBPS/Text/page_0.xhtml ...
Parsing OEBPS/Text/page_2.xhtml ...
Parsing OEBPS/Text/page_3.xhtml ...
Parsing OEBPS/Text/page_4.xhtml ...
Parsing OEBPS/Text/page_22.xhtml ...
Parsing OEBPS/Text/page_6.xhtml ...
Parsing OEBPS/Text/page_5.xhtml ...
Parsing OEBPS/Text/page_23.xhtml ...
Parsing OEBPS/Text/page_7.xhtml ...
Parsing OEBPS/Text/page_82.xhtml ...
Parsing OEBPS/Text/page_57.xhtml ...
Parsing OEBPS/Text/page_28.xhtml ...
Parsing OEBPS/Text/page_61.xhtml ...
Parsing OEBPS/Text/page_30.xhtml ...
Parsing OEBPS/Text/page_29.xhtml ...
Parsing OEBPS/Text/page_59.xhtml ...
Parsing OEBPS/Text/page_32.xhtml ...
Parsing OEBPS/Text/page_31.xhtml ...
Parsing OEBPS/Text/page_33.xhtml ...
Parsing OEBPS/Text/page_63.xhtml ...
Parsing OEBPS/Text/page_62.xhtml ...
Parsing OEBPS/Text/page_34.xhtml ...
Parsing OEBPS/Text/page_64.xhtml ...
Parsing OEBPS/Text/page_35.xhtml ...
Parsing OEBPS/Text/page_65.xhtml ...
Parsing OEBPS/Text/page_73.xhtml ...
Parsing OEBPS/Text/page_37.xhtml ...
Parsing OEBPS/Text/page_67.xhtml ...
Parsing OEBPS/Text/page_38.xhtml ...
Parsing OEBPS/Text/page_68.xhtml ...
Parsing OEBPS/Text/page_70.xhtml ...
Parsing OEBPS/Text/page_40.xhtml ...
Parsing OEBPS/Text/page_42.xhtml ...
Parsing OEBPS/Text/page_41.xhtml ...
Parsing OEBPS/Text/page_71.xhtml ...
Parsing OEBPS/Text/page_44.xhtml ...
Parsing OEBPS/Text/page_72.xhtml ...
Parsing OEBPS/Text/page_43.xhtml ...
Parsing OEBPS/Text/page_85.xhtml ...
Parsing OEBPS/Text/page_74.xhtml ...
Parsing OEBPS/Text/page_75.xhtml ...
Parsing OEBPS/Text/page_36.xhtml ...
Parsing OEBPS/Text/page_76.xhtml ...
Parsing OEBPS/Text/page_46.xhtml ...
Parsing OEBPS/Text/page_24.xhtml ...
Parsing OEBPS/Text/page_27.xhtml ...
Parsing OEBPS/Text/page_78.xhtml ...
Parsing OEBPS/Text/page_66.xhtml ...
Parsing OEBPS/Text/page_47.xhtml ...
Parsing OEBPS/Text/page_25.xhtml ...
Parsing OEBPS/Text/page_48.xhtml ...
Parsing OEBPS/Text/page_80.xhtml ...
Parsing OEBPS/Text/page_81.xhtml ...
Parsing OEBPS/Text/page_50.xhtml ...
Parsing OEBPS/Text/page_52.xhtml ...
Parsing OEBPS/Text/page_51.xhtml ...
Parsing OEBPS/Text/page_83.xhtml ...
Parsing OEBPS/Text/page_45.xhtml ...
Parsing OEBPS/Text/page_84.xhtml ...
Parsing OEBPS/Text/page_53.xhtml ...
Parsing OEBPS/Text/page_55.xhtml ...
Parsing OEBPS/Text/page_54.xhtml ...
Parsing OEBPS/Text/page_56.xhtml ...
Reading TOC from NCX...
34% Running transforms on e-book...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 10.50000pt
Removing fake margins...
Found 345 items of level: p_5
Found 1 items of level: div_1
Found 1560 items of level: p_1
p_5 left margin stats: Counter({u'0': 335, u'19.85pt': 10})
p_5 right margin stats: Counter({u'0': 345})
div_1 left margin stats: Counter()
div_1 right margin stats: Counter()
p_1 left margin stats: Counter({u'0': 1470, u'19.85pt': 90})
p_1 right margin stats: Counter({u'0': 1560})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'OEBPS/Text/toc.xhtml' from manifest
Trimming u'OEBPS/toc.ncx' from manifest
Trimming u'page_styles.css' from manifest
Trimming u'OEBPS/Images/cover.png' from manifest
Creating PDF Output...
67% Running PDF Output plugin
Splitting markup on page breaks and flow limits, if any...
Converting input as a text based book...
Serializing oeb input to disk for processing...
Rendering pages to PDF...
Traceback (most recent call last):
  File "site.py", line 77, in main
  File "site-packages/calibre/ebooks/conversion/cli.py", line 391, in main
  File "site-packages/calibre/ebooks/conversion/plumber.py", line 1270, in run
  File "site-packages/calibre/ebooks/conversion/plugins/pdf_output.py", line 191, in convert
  File "site-packages/calibre/ebooks/conversion/plugins/pdf_output.py", line 276, in convert_text
  File "site-packages/calibre/ebooks/conversion/plugins/pdf_output.py", line 302, in write
  File "site-packages/calibre/ebooks/pdf/render/from_html.py", line 217, in dump
IndexError: list index out of range

Attach an EPUB file demonstrating/reproducing the problem to this bug report. You can do that by clicking the "Add attachment or patch" link at the bottom of the bug's page. If the file you are attaching is copyrighted, mark the bug as private. You can do this by clicking the tiny yellow icon next to "This report contains Public information" in the top right area of the bug's page.

 status incomplete

Changed in calibre:
status: New → Incomplete
mike sobolev (x-mike-l) wrote :

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments