PDF conversion fails - number of header/footer pages

Bug #1905736 reported by Daryl MacKay
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

Tried to convert an epub book to pdf. It failed. I only changed two parameters from the default, add blank line between paragraphs and add page numbers to the pdf file. Below is part of the log showing the error. Book is attached.

  File "site.py", line 49, in run_entry_point
  File "calibre\utils\ipc\worker.py", line 215, in main
  File "calibre\gui2\convert\gui_conversion.py", line 41, in gui_convert_override
  File "calibre\gui2\convert\gui_conversion.py", line 28, in gui_convert
  File "calibre\ebooks\conversion\plumber.py", line 1274, in run
  File "calibre\ebooks\conversion\plugins\pdf_output.py", line 188, in convert
  File "calibre\ebooks\conversion\plugins\pdf_output.py", line 254, in convert_text
  File "calibre\ebooks\pdf\html_writer.py", line 1282, in convert
  File "calibre\ebooks\pdf\html_writer.py", line 1170, in add_header_footer
ValueError: The number of header/footers pages (330) != number of document pages (328)

Revision history for this message
Daryl MacKay (darylmackay) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

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: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.