def save(self, filename, garbage=<NUM_LIT:0>, clean=<NUM_LIT:0>, deflate=<NUM_LIT:0>, incremental=<NUM_LIT:0>, ascii=<NUM_LIT:0>, expand=<NUM_LIT:0>, linear=<NUM_LIT:0>, pretty=<NUM_LIT:0>, decrypt=<NUM_LIT:1>):
if self.isClosed or self.isEncrypted:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if type(filename) == str:<EOL><INDENT>pass<EOL><DEDENT>elif type(filename) == unicode:<EOL><INDENT>filename = filename.encode('<STR_LIT:utf8>')<EOL><DEDENT>else:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>if filename == self.name and not incremental:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if self.pageCount < <NUM_LIT:1>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if incremental:<EOL><INDENT>if self.name != filename or self.stream:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT><DEDENT>return _fitz.Document_save(self, filename, garbage, clean, deflate, incremental, ascii, expand, linear, pretty, decrypt)<EOL>
save(self, filename, garbage=0, clean=0, deflate=0, incremental=0, ascii=0, expand=0, linear=0, pretty=0, decrypt=1) -> PyObject *