From 6b4c257cce116967121e608e699311a6784c3905 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 20 Oct 2025 19:16:04 +0200 Subject: [PATCH] wip #7772 @1 --- Dockerfile | 4 ++-- app/src/PDFOperations.php | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9b7af68..b8c6ab8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends gnupg \ && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C \ && apt-get update \ && apt-get -y --no-install-recommends install x11-common pdftk poppler-utils ghostscript netpbm sshfs mupdf-tools php8.4-cli php8.4-fpm php8.4-curl php8.4-exif php8.4-xml php8.4-gd php8.4-ssh php8.4-zip libjpeg-turbo-progs zip unzip \ - less nano wget bash lynx rsync python3 python3-pip python-is-python3 + less nano wget bash lynx rsync python3 python3-pip python-is-python3 ffmpeg libsm6 libxext6 -RUN pip3 install docling accelerate +RUN pip3 install docling COPY --from=composer:2 /usr/bin/composer /usr/bin/composer COPY --chmod=755 startup /usr/bin/startup diff --git a/app/src/PDFOperations.php b/app/src/PDFOperations.php index 520537a..bdee706 100644 --- a/app/src/PDFOperations.php +++ b/app/src/PDFOperations.php @@ -75,8 +75,7 @@ class PDFOperations public static function extractMarkdown($pdf, $out) { - PDFTools::extractMarkdown(Buffer::getIn($pdf), $out); - Buffer::syncOut(); + PDFTools::extractMarkdown($pdf, $out); return $out; } -- 2.39.5