markitdown
markitdown copied to clipboard
Feat/save document converter result
Hello, Thanks for the awesome package :)
This is a simple PR that adds a new save method to the DocumentConverterResult class, making it easier to save the converted document result to a file.
Changes:
- Added a save method to the
DocumentConverterResultclass, which takes afile_pathand optional encoding parameter. The method writes thetext_contentto the specified file using the specified encoding. - Updated the sample script in the README file to showcase the new
savemethod.
@microsoft-github-policy-service agree