Bug 167728 - When using CLI to call soffice to convert an odt to pdf I get warning/error messages
Summary: When using CLI to call soffice to convert an odt to pdf I get warning/error m...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-29 22:49 UTC by dames02.00
Modified: 2026-01-13 03:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Zip file that includes the odt and Dockerfile for reproducing the bug (8.68 KB, application/octet-stream)
2025-07-29 22:56 UTC, dames02.00
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dames02.00 2025-07-29 22:49:33 UTC
Description:
When using this command:
"soffice --headless --invisible --convert-to pdf:writer_pdf_Export --outdir /tmp /tmp/hello_world.odt"

the following warnings appear:

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>

Steps to reproduce explained below

Steps to Reproduce:
1. Unzip zip file(I attached to this submission) into directory called “bundle” and navigate into it
   - unzip bundle.zip -d bundle
   - cd bundle

2. Build docker image with name “test-lo-25-8-0-1"
   - docker build -f Dockerfile_LO_25_8_0_1 -t test-lo-25-8-0-1 .

3. Start docker container in background with previous image created
   - docker run --rm --name test-lo-25-8-0-1 -d test-lo-25-8-0-1

4. Attach to the already running docker container
   - docker exec -it test-lo-25-8-0-1 /bin/bash

5. Run LibreOffice CLI to convert odt -> pdf
   - soffice --headless --invisible --convert-to pdf:writer_pdf_Export --outdir /tmp /tmp/hello_world.odt

Then the following logs will appear, even though the convert to pdf was successful (and the pdf generates correctly):

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
convert /tmp/hello_world.odt as a Writer document -> /tmp/hello_world.pdf using filter : writer_pdf_Export

6. Can open it to see pdf is good, copy the converted pdf from docker container to local directory 
   - docker cp test-lo-25-8-0-1:/tmp/hello_world.pdf .

7. Stop docker container
   - docker stop test-lo-25-8-0-1


Actual Results:
After following the "Steps to Reproduce", I have a pdf generated properly but also the following warning/error logs:

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
convert /tmp/hello_world.odt as a Writer document -> /tmp/hello_world.pdf using filter : writer_pdf_Export


Expected Results:
Not shown these warning/error logs


Reproducible: Always


User Profile Reset: Yes

Additional Info:
The attachment has the odt and the Dockerfile to be run
Comment 1 dames02.00 2025-07-29 22:53:41 UTC
If you are running on aarch architecture rather than x86_64 run the following for step #3: "docker buildx build --platform linux/amd64 --load -f Dockerfile_LO_25_8_0_1 -t test-lo-25-8-0-1 ."
Comment 2 dames02.00 2025-07-29 22:54:38 UTC
CORRECTION from previous comment:

If you are running on aarch architecture rather than x86_64 run the following for step #2: "docker buildx build --platform linux/amd64 --load -f Dockerfile_LO_25_8_0_1 -t test-lo-25-8-0-1 ."
Comment 3 dames02.00 2025-07-29 22:56:33 UTC
Created attachment 202071 [details]
Zip file that includes the odt and Dockerfile for reproducing the bug
Comment 4 Tobias Widmann 2026-01-12 17:51:01 UTC
We are seeing this warning as well, albeit in a slightly different situation (using the LibreOffice UNO API from Java). I found two similar bug reports that are possibly related: https://bugs.documentfoundation.org/show_bug.cgi?id=166294 and https://bugs.documentfoundation.org/show_bug.cgi?id=168461 (Windows)