Hi,
Hi Andreas,
Hi Andreas,
Thanks for sharing the code snippet.
I have tested the scenario where I have used the following code snippet to create a PDF file with Base64 image embedded inside it. I am afraid I am not certain about the contents being returned by htmlGenerator.GetHtml();
method. Please take a look over the attached resultant PDF being generated over my end and confirm that you are also facing similar problem.
[C#]
Pdf pdf = new Pdf();
Section section = new Section();
pdf.Sections.Add(section);
string html;
html = "<img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==\" alt=\"Red dot\">";
Text htmlText = new Text(section, html);
htmlText.IsHtmlTagSupported = true;
section.Paragraphs.Add(htmlText);
//pdf.HtmlInfo.ImgUrl = htmlGenerator.getBasePath();
//pdf.HtmlInfo.ExternalResourcesBasePath = htmlGenerator.getBasePath();
pdf.Save("d:/pdftest/HTML_with_Base64_Image.pdf");
Yes, that is how the PDF looks like at my end too.
Hi Andreas,
have logged it in our issue tracking system as PDFNEWNET-34213. We will investigate this
issue in details and will keep you updated on the status of a correction.
apologize for your inconvenience.
The issues you have found earlier (filed as PDFNEWNET-34213) have been fixed in Aspose.Pdf for .NET 7.8.0update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.