SkipImagesStrategy

Inheritance: java.lang.Object

All Implemented Interfaces: com.groupdocs.markdown.IImageExportStrategy

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
 

Constructors

Constructor Description
SkipImagesStrategy()

Methods

Method Description
getImagesFolder() Returns an empty string since this strategy does not use an images folder.
getImageStream(ImageExportContext context) Returns null to indicate that the image should be skipped.

SkipImagesStrategy()

public SkipImagesStrategy()

getImagesFolder()

public String getImagesFolder()

Returns an empty string since this strategy does not use an images folder.

Returns: java.lang.String

getImageStream(ImageExportContext context)

public OutputStream getImageStream(ImageExportContext context)

Returns null to indicate that the image should be skipped.

Parameters:

Parameter Type Description
context ImageExportContext

Returns: java.io.OutputStream