From 8dda59686e9fb7407691eb09638fb39b444ac4ec Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 14 Jan 2026 14:48:58 +0100 Subject: [PATCH] wip #7894 @0.5 --- src/CommandLine/Docling.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/CommandLine/Docling.php diff --git a/src/CommandLine/Docling.php b/src/CommandLine/Docling.php new file mode 100644 index 0000000..ddeea82 --- /dev/null +++ b/src/CommandLine/Docling.php @@ -0,0 +1,31 @@ +setArg('to', 'md'); + if ($locale) { + $cli->setArg('ocr-lang', $locale); + } + $cli->setArg('output', $out); + $cli->setArg(null, $image); + $cli->execute(); + } + return file_get_contents($out); + } +} \ No newline at end of file -- 2.39.5