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:
Kovid Goyal 2016-12-28 08:40:53 +05:30
parent 1192de9351
commit 551bf6d74b

View File

@ -417,6 +417,6 @@ class PDFWriter(QObject):
break
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'],
amap['anchors'])