I used aspose-words in local windows and Macos, it works fine with document having 38 pages.
When I deploy using docker
https://packages.microsoft.com/debian/11/prod bullseye mai
FROM python:3.10.11 as build
WORKDIR /…...libgdiplus \ libc6-dev \ fontconfig \ ttf-mscorefonts-installer...libgdiplus \ libc6-dev \ fontconfig \ ttf-mscorefonts-installer...