mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-02 07:22:14 +00:00
Clean up styling and docs
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
parent
3915d3f35c
commit
b81961a04e
@ -180,7 +180,7 @@ def convert(
|
|||||||
ImageRefMode,
|
ImageRefMode,
|
||||||
typer.Option(
|
typer.Option(
|
||||||
...,
|
...,
|
||||||
help="Image export mode for the document (only in case of Markdown or HTML). In `placeholder`, only the position of the image is returned. In `embedded` mode, the image is contained in base64. In `referenced` mode, the image is exported in PNG format and referenced from the main exported document.",
|
help="Image export mode for the document (only in case of JSON, Markdown or HTML). With `placeholder`, only the position of the image is marked in the output. In `embedded` mode, the image is embedded as base64 encoded string. In `referenced` mode, the image is exported in PNG format and referenced from the main exported document.",
|
||||||
),
|
),
|
||||||
] = ImageRefMode.EMBEDDED,
|
] = ImageRefMode.EMBEDDED,
|
||||||
ocr: Annotated[
|
ocr: Annotated[
|
||||||
@ -355,7 +355,9 @@ def convert(
|
|||||||
|
|
||||||
if image_export_mode != ImageRefMode.PLACEHOLDER:
|
if image_export_mode != ImageRefMode.PLACEHOLDER:
|
||||||
pipeline_options.generate_page_images = True
|
pipeline_options.generate_page_images = True
|
||||||
pipeline_options.generate_picture_images = True #FIXME: to be deprecated in verson 3
|
pipeline_options.generate_picture_images = (
|
||||||
|
True # FIXME: to be deprecated in verson 3
|
||||||
|
)
|
||||||
pipeline_options.images_scale = 2
|
pipeline_options.images_scale = 2
|
||||||
|
|
||||||
if artifacts_path is not None:
|
if artifacts_path is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user