From: Vincent Vanwaelscappel Date: Wed, 14 Jan 2026 13:48:58 +0000 (+0100) Subject: wip #7894 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8dda59686e9fb7407691eb09638fb39b444ac4ec;p=cubist_util.git wip #7894 @0.5 --- 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