Class ConversionOptions.Builder
java.lang.Object
io.github.cyber655.markitdown.ConversionOptions.Builder
- Enclosing class:
ConversionOptions
Builder for
ConversionOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the immutable options instance.charsetHint(String charset) Hint about the file's charset, e.g.contentUnderstanding(String endpoint) Uses Azure Content Understanding for extraction (maps to--use-cu --cu-endpoint <endpoint>).contentUnderstandingAnalyzer(String analyzerId) Content Understanding analyzer id (maps to--cu-analyzer).contentUnderstandingFileTypes(String... fileTypes) File types to route to Content Understanding, e.g.documentIntelligence(String endpoint) Uses Azure Document Intelligence for extraction (maps to-d -e <endpoint>).extensionHint(String extension) Hint about the file extension (maps to-x).keepDataUris(boolean keepDataUris) Keeps data URIs (such as base64-encoded images) in the output instead of truncating them (maps to--keep-data-uris).mimeTypeHint(String mimeType) Hint about the file's MIME type, e.g.usePlugins(boolean usePlugins) Enables third-party MarkItDown plugins (maps to-p).
-
Method Details
-
extensionHint
Hint about the file extension (maps to-x). Useful when converting raw bytes or a stream that has no filename. A leading dot is optional. -
mimeTypeHint
Hint about the file's MIME type, e.g.application/pdf(maps to-m). -
charsetHint
Hint about the file's charset, e.g.UTF-8(maps to-c). -
usePlugins
Enables third-party MarkItDown plugins (maps to-p). -
keepDataUris
Keeps data URIs (such as base64-encoded images) in the output instead of truncating them (maps to--keep-data-uris). -
documentIntelligence
Uses Azure Document Intelligence for extraction (maps to-d -e <endpoint>). Mutually exclusive withcontentUnderstanding(String). -
contentUnderstanding
Uses Azure Content Understanding for extraction (maps to--use-cu --cu-endpoint <endpoint>). Mutually exclusive withdocumentIntelligence(String). -
contentUnderstandingAnalyzer
Content Understanding analyzer id (maps to--cu-analyzer). -
contentUnderstandingFileTypes
File types to route to Content Understanding, e.g.pdf,jpeg,mp4(maps to--cu-file-types). -
build
Builds the immutable options instance.
-