How to convert .pages file to pdf in a Docker container?

Hello,

I am currently trying to convert a Mac .pages file to a pdf via this command in a Docker container using Ubuntu:

./soffice --headless --convert-to pdf PATH_TO_PAGES_FILE

In the container, I am using LibreOffice version 6.2.4.

After running the above command, the .pages file is able to get converted to a pdf. However, if the .pages file has images in it, then these images do not appear in the generated pdf.

If I run the above command on Mac OS and not within a Docker container using Ubuntu, then the .pages file gets converted successfully to a pdf and the images do appear in the generated pdf as well.

Has anyone ran into a similar problem and have any suggestions on how to solve this issue? Any help would be greatly appreciated. Thanks!