Save image as file
Leave feedback
This example demonstrates how to saves images to the file system during document conversion.
AdvancedUsage.Strategy.ImageFileStrategy
using (var converter = new MarkdownConverter("example.pdf"))
{
var options = new DocumentConverterOptions
{
ImageExportStrategy = new ExportImagesToFileSystemStrategy("D:\\Images\\")
};
converter.Convert("output.md", options);
}
You may easily run the code above and see the feature in action in our GitHub examples:
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.