mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
PDF Output: Fix conversion failure when input document contains first page with no renderable content. Fixes #1652825 [Private bug](https://bugs.launchpad.net/calibre/+bug/1652825)
This commit is contained in:
parent
1192de9351
commit
551bf6d74b
@ -417,6 +417,6 @@ class PDFWriter(QObject):
|
|||||||
break
|
break
|
||||||
col += 1
|
col += 1
|
||||||
|
|
||||||
if not self.doc.errors_occurred:
|
if not self.doc.errors_occurred and self.doc.current_page_num > 1:
|
||||||
self.doc.add_links(self.current_item, start_page, amap['links'],
|
self.doc.add_links(self.current_item, start_page, amap['links'],
|
||||||
amap['anchors'])
|
amap['anchors'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user