Skip to content

docker aspnet:6.0-alpine image not rendered in pdf file #89

@stefanodesimone

Description

@stefanodesimone

Hi all,
in this thread https://github.com/HakanL/WkHtmlToPdf-DotNet/issues/88 we can create pdf using aspnet:6.0-alpine as image base.
If in the html file we have an image in base 64
<img src='data:image/jpeg;base64,iVBORw0KGg.......
The image is not rendered.

docker file:

`RUN apk update &&
apk add --no-cache
bash
icu-libs
krb5-libs
libgcc
libintl
libssl1.1
libstdc++
zlib
libstdc++
libx11
libxrender
libxext
libssl1.1
libjpeg
gcompat
ca-certificates
fontconfig
freetype
ttf-dejavu
ttf-droid
ttf-freefont
ttf-liberation &&
apk add --no-cache libgdiplus --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ &&
ln -s /usr/lib/libjpeg.so.8 /usr/lib/libjpeg.so.62

FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build
WORKDIR /src
......
`

Any suggestions?
Thanks in advance
Stefano

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions