Hello,
I have problem with convert html file to pdf.
I draw, using svg in html, next i want have pdf file.
I saw when i grouped element in svg like: Or and use later , pdf file was wrong.
Html file in browser (Chrome, mozilla, IE) looks good, but pdf after convertation is wrong.
Maybe my C# code isn’t good:
Aspose.Pdf.Document pdfDocument1 = new Aspose.Pdf.Document();
Aspose.Pdf.HtmlLoadOptions htmlLoadOptions = new Aspose.Pdf.HtmlLoadOptions();
htmlLoadOptions.PageInfo.Height = Convert.ToInt16(Height);
htmlLoadOptions.PageInfo.Width = Convert.ToInt16(Width);
htmlLoadOptions.PageInfo.Margin.Left = 20;
htmlLoadOptions.PageInfo.Margin.Top = 10;
htmlLoadOptions.PageInfo.Margin.Bottom = 10;
htmlLoadOptions.PageInfo.Margin.Right = 10;
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(FilePath + “.html”,htmlLoadOptions);
pdfDocument1.Pages.Add(pdfDocument.Pages);
pdfDocument1.Save(FilePath + “.pdf”);
Im adding html and pdf files, which I tested
html: