PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

No Fonts installed on the device!! Linux container

Open krish449 opened this issue 2 years ago • 1 comments

Hi Team,

we are using PDF sharp Core package (1.3.62) . Currently while using it in Linux container, we are getting an issue "No fonts installed on the device"

Tried , different ways(commands) installing fonts through docker. but it was not installed and still facing the error.

Commands used:

RUN echo "deb http://deb.debian.org/debian stable main contrib non-free" > /etc/apt/sources.list
&& echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections
&& apt-get update
&& apt-get install -y
ttf-mscorefonts-installer
&& apt-get clean
&& apt-get autoremove -y
&& rm -rf /var/lib/apt/lists/*

RUN apk --no-cache add msttcorefonts-installer fontconfig &&
update-ms-fonts &&
fc-cache -f

krish449 avatar Nov 14 '23 11:11 krish449

Maybe you can found in my source a solution : https://github.com/tossnet/Blazor-PdfSharpCore the demo in the readme run in a Linux

tossnet avatar Jan 06 '24 17:01 tossnet