Defines a strategy for handling image export during document-to-Markdown conversion. Implement this interface to control where and how images extracted from the source document are stored.
Implement this interface directly when none of the built-in strategies meet your needs.
Examples
Custom strategy that uploads images to cloud storage:
publicclassCloudImageExportStrategy:IImageExportStrategy{publicstringImagesFolder=>"cloud-images";publicStreamGetImageStream(ImageExportContextcontext){// Rename the image file if neededcontext.ImageFileName="doc-"+context.ImageFileName;// Return a stream that the library will write image bytes toreturnnewMemoryStream();// replace with your cloud upload stream}}