def save(self, filename):
        """
        Save document to a file.

        Parameters
        ----------
        filename : str
            The output string filename

        """
        self.doc.save(os.path.expanduser(filename))
Save document to a file.

        Parameters
        ----------
        filename : str
            The output string filename