diff --git a/src/plugins/lib/libcairodoc.py b/src/plugins/lib/libcairodoc.py index dd4b1229f..9d67c41b6 100644 --- a/src/plugins/lib/libcairodoc.py +++ b/src/plugins/lib/libcairodoc.py @@ -1525,7 +1525,8 @@ links (like ODF) and write PDF from that format. def start_page(self): # if this is not the first page we need to "close" the previous one - if self._doc.get_children(): + children = self._doc.get_children() + if children and children[-1].get_type() != 'PAGEBREAK': self._doc.add_child(GtkDocPagebreak()) new_frame_style = FrameStyle(width=self.get_usable_width(),