Skip to content

Error converting simple pptx file to pdf #465

@keithcaff

Description

@keithcaff

Hi there,

When I attempt to convert a simple pptx file to pdf using the POST forms/libreoffice/convert endpoint in gotenberg I get a 500 error.
The pptx file that I am attempting to convert to pdf using the libre office engine is very simple. It has one slide with two images and a text label.
I think the issue is related to the images used in the pptx but I'm not sure why they would cause the pdf conversion to fail. When I remove one of the images from the pptx the pdf conversion runs successfully.

See the below screen grab of the erroneous slide in the pptx. I have also attached the pptx that is causing the conversion failure

FailingGotenbergConversionImage

The following is a snippet of debug logs central to the issue. Full logs are here

{"level":"debug","ts":1654172407.363404,"logger":"api.formslibreofficeconvert.usrliblibreofficeprogramsoffice.bin","msg":"unix process already killed","trace":"656a0796-af74-4b8c-9acd-456409a7fff5"}
{"level":"error","ts":1654172407.3656774,"logger":"api","msg":"convert to PDF: unoconv PDF: unix process error: wait for unix process: exit status 6","trace":"6922e459-19b5-41e2-aff1-ab95297d3c4d","remote_ip":"10.1.18.135","host":"gotenberg-service:3000","uri":"/forms/libreoffice/convert","method":"POST","path":"/forms/libreoffice/convert","referer":"","user_agent":"Apache-HttpClient/4.5.13 (Java/11.0.10)","status":500,"latency":14209214897,"latency_human":"14.209214897s","bytes_in":775610,"bytes_out":21}
{"level":"debug","ts":1654172407.3685727,"logger":"api.formslibreofficeconvert.usrliblibreofficeprogramsoffice.bin","msg":"start unix process: /usr/lib/libreoffice/program/soffice.bin --headless --invisible --nocrashreport --nodefault --nologo --nofirststartwizard --norestore -env:UserInstallation=file:///tmp/bd7353dc-0119-4d19-aa82-308b96069ef8 --accept=socket,host=127.0.0.1,port=41679,tcpNoDelay=1;urp;StarOffice.ComponentContext","trace":"6922e459-19b5-41e2-aff1-ab95297d3c4d"}
{"level":"debug","ts":1654172409.1584835,"logger":"api.formslibreofficeconvert.usrliblibreofficeprogramsoffice.bin","msg":"unix process already killed","trace":"6922e459-19b5-41e2-aff1-ab95297d3c4d"}
{"level":"debug","ts":1654172409.1585321,"logger":"api.formslibreofficeconvert","msg":"got exit code 81, e.g., LibreOffice listener first start","trace":"6922e459-19b5-41e2-aff1-ab95297d3c4d"}

Docker file used to build Gotenberg image

FROM gotenberg/gotenberg:7.5.2
USER root
COPY /resources/fonts/* /usr/local/share/fonts/
USER gotenberg
CMD ["gotenberg", "--pdfengines-engines=uno-pdfengine", "--api-disable-health-check-logging=true", "--log-level=debug", "--api-timeout=60s"]

Any help with this would be much appreciated!

Thanks,
Keith

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocumentation update request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions