Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
var htmlDocument = new HtmlFormatProvider();
string html = File.ReadAllText("TestCertificate.html");
var doc = htmlDocument.Import(html);
var pdfFixedProvider = new PdfFormatProvider();
var pdfFlowProvider = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();
var pdffixed = pdfFlowProvider.ExportToFixedDocument(doc);
Do we have Fixed and Flow Format providers in Core?
I need the following namespaces but without Windows:
using Telerik.Windows.Documents.Fixed.FormatProviders.Pdf;
using Telerik.Windows.Documents.Fixed.Model;
using Telerik.Windows.Documents.Flow.FormatProviders.Html;
using Telerik.Windows.Documents.Flow.Model;
Dimitar
Telerik team
commented on 07 Sep 2022, 10:11 AM
Hi,
The code should not be changed and namespaces are the same in both cases. Our code is in one place and it is changed only in the places where this is necessary.