Hey I have a render issues with some linked images.
Because the Add/Update button won’t take my .zip file I will send you my code here:
using System.IO;
using System.Text;
using Aspose.Pdf;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
const string html = @"(https://www.lucidchart.com/publicSegments/view/ac93a77c-6796-4f33-9e22-805637330b53/image.png)(http://i.imgur.com/WJXLylg.png)";
var htmloptions = new HtmlLoadOptions();
htmloptions.PageInfo.Width = Aspose.Pdf.Generator.PageSize.A4Width;
htmloptions.PageInfo.Height = Aspose.Pdf.Generator.PageSize.A4Height;
htmloptions.PageInfo.Margin.Top = MmToPoint(37.5);
htmloptions.PageInfo.Margin.Bottom = MmToPoint(18);
htmloptions.PageInfo.Margin.Left = htmloptions.PageInfo.Margin.Right = MmToPoint(23.5);
htmloptions.PageInfo.IsLandscape = false;
var doc = new Document(new MemoryStream(Encoding.UTF8.GetBytes(html)), htmloptions);
doc.Save(@“C:\temp\testpdf.pdf”);
}
private static double MmToPoint(double mm)
{
return mm * 2.834646;
}
}
}