mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-21 10:56:43 +01:00
PDF Output: Fix rendering of cover as first age of PDF (ignore margins so that the image covers the entire page)
This commit is contained in:
parent
77208efb4b
commit
caba1b15d6
1 changed files with 2 additions and 1 deletions
|
|
@ -223,7 +223,8 @@ def insert_cover(self):
|
|||
if self.cover_data is None:
|
||||
return
|
||||
item_path = os.path.join(self.tmp_path, 'cover.pdf')
|
||||
printer = get_pdf_printer(self.opts, output_file_name=item_path)
|
||||
printer = get_pdf_printer(self.opts, output_file_name=item_path,
|
||||
for_comic=True)
|
||||
self.combine_queue.insert(0, item_path)
|
||||
p = QPixmap()
|
||||
p.loadFromData(self.cover_data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue