Class MarkItDown.Builder
java.lang.Object
io.github.cyber655.markitdown.MarkItDown.Builder
- Enclosing class:
MarkItDown
Builder for
MarkItDown.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an immutable client.environment(String key, String value) Adds an environment variable for the subprocess (e.g.executable(String executable) Path to (or name of) themarkitdownexecutable.Maximum time to wait for a single conversion.usePlugins(boolean usePlugins) Enables third-party plugins for every conversion (maps to-p).workingDirectory(Path workingDirectory) Working directory for the subprocess.
-
Method Details
-
executable
Path to (or name of) themarkitdownexecutable. Defaults to"markitdown", which is resolved against thePATH. -
timeout
Maximum time to wait for a single conversion. Defaults to no timeout. -
workingDirectory
Working directory for the subprocess. Defaults to the JVM's working directory. -
environment
Adds an environment variable for the subprocess (e.g. an Azure API key). -
usePlugins
Enables third-party plugins for every conversion (maps to-p). -
build
Builds an immutable client.
-