/// <summary> /// Saves the given document to the file system /// </summary> /// <param name="path">Name of the output file</param> /// <param name="document">Document that should be saved</param> /// <returns>True if the document could be saved</returns> public virtual bool Save(string path, IPrintableDocument document) { return(_defaultFileWriter.WriteAllText(path, document.Print())); }
/// <summary> /// <inheritdoc cref="IPrintableDocument.Print"/> /// </summary> /// <returns></returns> public string Print() { return(_outputDocument.Print()); }