Hi,
I've done a web application in ASP.NET (NET 5) that convert an HTML page (by url) to a PDF using Blink's Engine.
I've deployed it on Azure in a docker container and it works well.
The problem comes when I try to convert a page with asian languages like japanese or chinese.
All characters are not rendered.
Can you help me?
version: 19.1.0.54
The output is:
Docker file: ( PRJNAME is a placeholder for my project name )
#See
https://aka.ms/containerfastmode
to understand how Visual Studio uses this Dockerfile to build your images for
faster debugging.
FROM
mcr.microsoft.com/dotnet/aspnet:5.0 AS base
RUN
apt-get update && \
apt-get install -yq --no-install-recommends \
libasound2
libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \
libexpat1
libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0
libnspr4 \
libpango-1.0-0
libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \
libxcursor1
libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6
\
libnss3
WORKDIR
/app
EXPOSE
80
EXPOSE
443
FROM
mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR
/src
COPY
["PRJNAME/PRJNAME.csproj",
"PRJNAME/"]
RUN
dotnet restore "PRJNAME/PRJNAME.csproj"
COPY
. .
WORKDIR
"/src/PRJNAME"
RUN
dotnet build "PRJNAME.csproj" -c Release -o /app/build
FROM
build AS publish
RUN
dotnet publish "PRJNAME.csproj" -c Release -o /app/publish
FROM
base AS final
WORKDIR
/app
COPY
--from=publish /app/publish .
ENTRYPOINT ["dotnet",
"PRJNAME.dll"]