def layout(self, rect=None, width=<NUM_LIT:0>, height=<NUM_LIT:0>, fontsize=<NUM_LIT:11>):
if self.isClosed or self.isEncrypted:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>val = _fitz.Document_layout(self, rect, width, height, fontsize)<EOL>self._reset_page_refs()<EOL>self.initData()<EOL>return val<EOL>
Re-layout a reflowable document.