Delete streams before pages in Document destructor in order to prevent running the typesetter thread while deleting the stream and the text frames.
Delete streams before pages in Document destructor in order to prevent running the typesetter thread while deleting the stream and the text frames.

GNOME/passepartout,GNOME/passepartout,GNOME/passepartout,GNOME/passepartout