Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents from any .NET(C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Tue Dec 07, 2021 5:54 pm

I'm converting pptx to html and the resulting HTML has no texts from the original pptx. It works fine on my mac, but I see this issue in docker.
What additional packages I need to install?

Code: Select all
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine as runtime
WORKDIR /app
RUN apk add libgdiplus --repository https://dl-3.alpinelinux.org/alpine/edge/testing/
COPY --from=build /app/published-app /app
ENV ASPNETCORE_ENVIRONMENT=Release
ENTRYPOINT [ "dotnet", "/app/app.dll" ]

yankit86
 
Posts: 2
Joined: Tue Dec 07, 2021 5:50 pm

Wed Dec 08, 2021 7:38 am

Hello,

Thank you for your inquiry.
Please make sure that your docker environment has installed the fonts used by the PowerPoint file. After installing the font in the docker environment, you need to confirm that the current user has the permission to read the font information. If the issue still exists after trying the above methods, please provide your input PowerPoint file for our investigation. You could attach it here or send it to us via email (support@e-iceblue.com). Thanks in advance.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1101
Joined: Wed Apr 07, 2021 2:50 am

Wed Dec 08, 2021 8:16 am

I've changed my code to this and it works perfectly! Thank you!

Code: Select all
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine as runtime
WORKDIR /app
RUN apk add libgdiplus --repository https://dl-3.alpinelinux.org/alpine/edge/testing/
RUN wget https://github.com/google/fonts/archive/main.tar.gz -O gf.tar.gz && \
  tar -xf gf.tar.gz && \
  mkdir -p /usr/share/fonts/truetype/google-fonts && \
  find $PWD/fonts-main/ -name "*.ttf" -exec install -m644 {} /usr/share/fonts/truetype/google-fonts/ \; || return 1 && \
  rm -f gf.tar.gz && \
  # Remove the extracted fonts directory
  rm -rf $PWD/fonts-main && \
  # Remove the following line if you're installing more applications after this RUN command and you have errors while installing them
  rm -rf /var/cache/* && \
  fc-cache -f
COPY --from=build /app/published-app /app
ENV ASPNETCORE_ENVIRONMENT=Release
ENTRYPOINT [ "dotnet", "/app/app.dll" ]


See original code here on stack overflow "How to install fonts in Docker?"

yankit86
 
Posts: 2
Joined: Tue Dec 07, 2021 5:50 pm

Wed Dec 08, 2021 8:37 am

Hello,

Glad to hear that you solved the issue.
If you encounter other issues related to our products in the future, please feel free to contact us.
Wish you all the best!

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1101
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.Presentation