]> _ Git - fluidbook_processfarm.git/commitdiff
wip #7772 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 20 Oct 2025 17:16:04 +0000 (19:16 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 20 Oct 2025 17:16:04 +0000 (19:16 +0200)
Dockerfile
app/src/PDFOperations.php

index 9b7af68dd91d023975e32a64a8101a901cf97ff7..b8c6ab8c5ed08392b86f1d80f2b01e03c84d2c97 100644 (file)
@@ -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
index 520537a9b87eca960db367d8f90cbd61de2ffa04..bdee7063c5f7c147b829e968edba6d1b69f4aea2 100644 (file)
@@ -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;
     }