Skip image

Use SkipImagesStrategy when you want to convert a document to Markdown without exporting any images. Image references will be omitted from the output.

Using static method

import com.groupdocs.markdown.*;

public class SkipImagesStatic {

    public static void main(String[] args) {
        DocumentConvertOptions options = new DocumentConvertOptions();
        options.setImageExportStrategy(new SkipImagesStrategy());

        MarkdownConverter.toFile("business-plan.pdf", "skip-images-static.md", options);
    }
}

business-plan.pdf is a sample file used in this example. Click here to download it.

**Meridian Outdoor Co. — Business Plan**

FY2026 Strategic Plan




**Table of Contents**

MeridianOutdoorCo.—BusinessPlan.........................................................................................1
[TRUNCATED]

Download full output

Using instance API

import com.groupdocs.markdown.*;

public class SkipImagesInstance {

    public static void main(String[] args) {
        DocumentConvertOptions options = new DocumentConvertOptions();
        options.setImageExportStrategy(new SkipImagesStrategy());

        try (MarkdownConverter converter = new MarkdownConverter("business-plan.pdf")) {
            converter.convert("skip-images-instance.md", options);
        }
    }
}

business-plan.pdf is a sample file used in this example. Click here to download it.

**Meridian Outdoor Co. — Business Plan**

FY2026 Strategic Plan




**Table of Contents**

MeridianOutdoorCo.—BusinessPlan.........................................................................................1
[TRUNCATED]

Download full output

Close
Loading

Analyzing your prompt, please hold on...

An error occurred while retrieving the results. Please refresh the page and try again.