When the source document is not a file on disk (e.g., downloaded from a network, read from a database, or received as an upload), you can pass an InputStream directly to the MarkdownConverter constructor.
The stream is copied internally, so you may close it immediately after creating the converter. A multi-resource try-with-resources block closes both in the right order:
business-plan.docx is a sample file used in this example. Click here to download it.

**Meridian Outdoor Co. — Business Plan**
FY2026 Strategic Plan
# **Table of Contents**
FY2026 Strategic Plan 1
[TRUNCATED]