02-22-2023, 04:15 PM
(02-22-2023, 03:16 PM)joebordes Wrote: try `docker ps` that should show you the process running
then you can try the command in the repo
curl \
--request POST 'http://localhost:3000/convert/pdf' \
--form 'file=@"/path/to/file.docx"' \
-o my.pdf
finally, try using that same URL `http://localhost:3000`
docker ps : CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
682123ab3dd8 lynxtaa/unoserver-web:latest "/tini -- node -r do…" About an hour ago Up About an hour 0.0.0.0:3000->3000/tcp jovial_goodall
OK
curl --request POST 'http://localhost:3000/convert/pdf' --form 'file=@"/home/gb/comp.odt"' -o my.pdf :
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 122k 100 71831 100 53308 12082 8966 0:00:05 0:00:05 --:--:-- 19195
OK
but when I click "Export PDF" in coreBOS :
"Le type de fichier document texte brut (text/plain) n’est pas pris en charge"