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:
Kovid Goyal 2012-07-15 14:31:53 +05:30
parent 77208efb4b
commit caba1b15d6

View File

@ -223,7 +223,8 @@ class PDFWriter(QObject): # {{{
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)