public class SkipImagesStrategy implements IImageExportStrategy
Implements an image export strategy that skips saving images during document conversion.
This strategy is useful when you want to convert a document to Markdown without saving the actual image files.
When this strategy is used, the output Markdown will still contain image references
(e.g.,
), but the actual image files will not be saved to disk.
Example:
ConvertOptions options = new ConvertOptions();
options.setImageExportStrategy(new SkipImagesStrategy());
String markdown = MarkdownConverter.toMarkdown("document.docx", options);
// Image references remain in the markdown but no files are written