Images in HTML (img tag with URL) are not rendering in the converted PDF when running inside a sdk:6.0-alpine docker container. The same image is rendering when running from local without a docker container.
Aspose.PDF version: 23.1.0
Code snippet:
public byte[] ConvertHtmlToPdf(string htmlContent)
{
using var memoryStream = new MemoryStream();
HtmlFragment template = new(htmlContent);
Document document = new();
document.Pages.Add().Paragraphs.Add(template);
document.Save(memoryStream);
return memoryStream.ToArray();
}
I can see the image URL is accessible inside the docker container. What could be the potential reason(s) for not loading the image in the generated PDF?
@sreeraj.thottipparambil.tpr
The main disadvantage of Aspose.Pdf.Drawing is that printing is not currently supported. Otherwise, it has the same functionality as Aspose.Pdf.