public class SkipImagesStrategy extends Object implements IImageExportStrategy
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 written to disk.
Example:
MarkdownConversionOptions options = new MarkdownConversionOptions();
options.setImageExportStrategy(new SkipImagesStrategy());
// Convert document without saving images
String markdown = MarkdownConverter.convert("document.docx", options);
// The markdown will contain image references like ,
// but the actual image files won't be saved.
| Constructor and Description |
|---|
SkipImagesStrategy() |
| Modifier and Type | Method and Description |
|---|---|
String |
getImagesFolder()
Gets an empty string as this strategy does not use an images folder.
|
OutputStream |
getImageStream(ImageExportContext context)
Returns
null to indicate that the image should be skipped. |
public String getImagesFolder()
getImagesFolder in interface IImageExportStrategypublic OutputStream getImageStream(ImageExportContext context)
null to indicate that the image should be skipped.getImageStream in interface IImageExportStrategycontext - The image export context (not used in this implementation).null to skip the image.Copyright © 2026. All rights reserved.