calibre PDF conversion helper program crashes, leaving output file empty
Bug #672137 reported by
Delan Azabani
This bug affects 6 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre (Ubuntu) |
Fix Released
|
Undecided
|
os |
Bug Description
Binary package hint: calibre
Converting ebooks to PDF fails in calibre. The python script crashes with
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self._write()
File "/usr/lib/
outPDF = PdfFileWriter(
TypeError: __init__() got an unexpected keyword argument 'title'
and the resulting output PDF file is empty.
Changed in calibre (Ubuntu): | |
assignee: | nobody → os (syriatalks) |
To post a comment you must log in.
This is due to the pyPdf toolkit being updated.
calibre/ ebooks/ pdf/writer. py calls PdfFileWriter with a title and author, but that is not an attribute the PdfFileWriter function takes.
Just comment out that line, and make it:
outPDF = PdfFileWriter()
Don't forget to keep the same indentation, as python will not forgive.
Nuisance yes, but easy fix :)
Hope that helps,
Tom Golubev