Save image as base64
Leave feedback
This example demonstrates how to embeds images as Base64 strings directly in the Markdown.
AdvancedUsage.Strategy.AsBase64Strategy
using (var converter = new MarkdownConverter("example.pdf"))
{
var options = new DocumentConverterOptions
{
ImageExportStrategy = new ExportImagesAsBase64Strategy()
};
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.