We are generating PDF from HTML with below code but some time randomly we got attached error.
HtmlLoadOptions objLoadOptions = new HtmlLoadOptions();
objLoadOptions.PageInfo.Margin.Bottom = 1;
objLoadOptions.PageInfo.Margin.Top = 1;
objLoadOptions.PageInfo.Margin.Left = 1;
objLoadOptions.PageInfo.Margin.Right = 1;
objLoadOptions.PageInfo.IsLandscape = false;
objLoadOptions.PageInfo.Width = PageSize.PageLetter.Width;
objLoadOptions.PageInfo.Height = PageSize.PageLetter.Height;
MemoryStream ms = new MemoryStream(Encoding.UTF8.GetBytes(File.ReadAllText(file)));
Document doc = new Document(ms, objLoadOptions);
doc.Save(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Pdf", Guid.NewGuid().ToString() + ".pdf"));
error Image.png (98.5 KB)
Error in aspose.zip (120.1 KB)