Hi Team
I am trying to convert HTML content into Tiff image with help of latest Aspose.Html 23.7 library.
It is throwing an exception in container environment. In my local(windos) it’s working fine.
This is my docker file and sample code.
FROM repo.mitchell.com/dotnet/sdk:6.0.400-bullseye-slim
USER root
RUN apt-get update \
&& apt-get install -y --allow-unauthenticated \
libfontconfig1 \
libfreetype6 \
libexpat1 \
libpng16-16 \
libc6-dev \
libgdiplus \
libx11-dev \
&& rm -rf /var/lib/apt/lists/*
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
RUN sed -i'.bak' 's/$/ contrib/' /etc/apt/sources.list
RUN apt-get update; apt-get install -y ttf-mscorefonts-installer fontconfig
RUN fc-cache -f -v
Html Sample Code For Conversion.
using Aspose.Html;
using Aspose.Html.Converters;
using Aspose.Html.Saving;
using var document = new HTMLDocument("sample.html");
var options = new ImageSaveOptions(ImageFormat.Tiff);
Converter.ConvertHTML(document, options, "output.tiff");
In sample html contains just this line of code.
"<html><body><div>Hello, world!</div><div>Goodbye, World!</div></body></html>"
Please help on this, how to resolve the issue.