Skip image

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Markdown MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-markdown -- dnx GroupDocs.Markdown.Mcp --yes
Folders, licensing and more →

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

from groupdocs.markdown import MarkdownConverter, ConvertOptions, SkipImagesStrategy

def skip_images_static():
    """Convert a PDF to Markdown while skipping all images."""

    # Step 1: Configure the skip-images strategy to omit images from output
    options = ConvertOptions()
    options.image_export_strategy = SkipImagesStrategy()

    # Step 2: Convert using keyword argument for options
    MarkdownConverter.to_file("business-plan.pdf", "skip-images-static.md", convert_options=options)

if __name__ == "__main__":
    skip_images_static()

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

**Meridian Outdoor Co. — Business Plan**

FY2026 Strategic Plan

**Table of Contents**

Meridian Outdoor Co. — Business Plan .........................................................................................1FY2026 Strategic Plan.................................................................................................................1Table of Contents.............................................................................................................................2

1. Ex
[TRUNCATED]

Download full output

Using instance API

from groupdocs.markdown import MarkdownConverter, ConvertOptions, SkipImagesStrategy

def skip_images_instance():
    """Skip all images during conversion using the instance API."""

    # Step 1: Configure the skip-images strategy
    options = ConvertOptions()
    options.image_export_strategy = SkipImagesStrategy()

    # Step 2: Open the document with a context manager
    with MarkdownConverter("business-plan.pdf") as converter:
        # Step 3: Convert using keyword argument for options
        converter.convert("skip-images-instance.md", convert_options=options)

if __name__ == "__main__":
    skip_images_instance()

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

**Meridian Outdoor Co. — Business Plan**

FY2026 Strategic Plan

**Table of Contents**

Meridian Outdoor Co. — Business Plan .........................................................................................1FY2026 Strategic Plan.................................................................................................................1Table of Contents.............................................................................................................................2

1. Ex
[TRUNCATED]

Download full output