Input Formats
MuPDF.NET can open and extract content from the following document types:Output Formats
MuPDF.NET can produce output in four formats depending on your use case:Markdown
The default and most commonly used output format. Text is extracted in reading order with headings, lists, tables, and inline formatting preserved where detectable.JSON
Returns structured data including bounding boxes, font information, and layout metadata for every block on the page. Useful for building custom post-processing pipelines.Plain Text
Strips all formatting and returns raw text content. Ideal when downstream tools do not need Markdown syntax.Images
WhenwriteImages: true is passed to ToMarkdown(), embedded images and graphics are extracted and saved to disk. Image paths are referenced inline in the Markdown output.
Next Steps
Extract Markdown
Full walkthrough of
ToMarkdown() with common options.Images & Graphics
Controlling image extraction, DPI, and output path.