is Telerik.Windows.Documents cross-platform?

1 Answer 24 Views
PdfProcessing
Alexandre
Top achievements
Rank 1
Iron
Alexandre asked on 02 Sep 2022, 05:45 PM

Using Document Processing library in .NET 6 Blazor application.

is Telerik.Windows.Documents cross-platform or only for Windows?

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 05 Sep 2022, 09:02 AM

Hello Alexandre,

We have a version for Blazor as well. More information is available here: PdfProcessing - Cross Platform Support.

Let me know if I can assist you further.

Regards,
Dimitar
Progress Telerik

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/.

Alexandre
Top achievements
Rank 1
Iron
commented on 06 Sep 2022, 01:42 PM | edited

I used FormatProviders from Windows namespace:
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. 

Regards,

Dimitar

 

Tags
PdfProcessing
Asked by
Alexandre
Top achievements
Rank 1
Iron
Answers by
Dimitar
Telerik team
Share this question
or