public interface IImageExportStrategy
The library ships with several built-in strategies:
ExportImagesAsBase64Strategy — embeds images inline as Base64, the default.ExportImagesToFileSystemStrategy — writes images to a folder on disk.SkipImagesStrategy — omits images entirely.CustomImagesStrategy — delegates to a callback you supply.Implement this interface directly when none of the built-in strategies meet your needs.
Example:
{@code
public class CloudImageExportStrategy implements IImageExportStrategy {| Modifier and Type | Method and Description |
|---|---|
String |
getImagesFolder()
Gets the folder path where exported images will be stored.
|
OutputStream |
getImageStream(ImageExportContext context)
Returns a writable stream for the image described by
context. |
String getImagesFolder()
OutputStream getImageStream(ImageExportContext context)
context.
The library writes the image bytes to this stream during conversion.context - The image export context containing the default image file name and other metadata.
You may modify imageFileName before returning the stream to change the file name
that appears in the Markdown output.null to use the default behaviorCopyright © 2026. All rights reserved.