docling Basic Usage Guide
This guide provides a basic overview of how to use the docling command-line tool to convert and process your documents.
Activating the Environment
Before you can usedocling, you need to activate the virtual environment you created during installation:
Basic Conversion
The most common use case fordocling is to convert a document from one format to another. The basic syntax is as follows:
my_document.pdf to a Microsoft Word document, you would run the following command:
docling will automatically detect the input and output formats based on the file extensions.
Specifying Output Format
You can also explicitly specify the output format using the--format or -f option. This is useful if you want to convert a file to a format that does not have a standard file extension.
Example:
To convert a PDF file to plain text, you can use the following command:
Getting Help
docling provides a comprehensive help menu that lists all available commands and options. To access the help menu, you can run the following command:
--help flag.
Example:
To get help for the convert command, you can run:
convert command and all of its available options.