HTML Import not working

1 Answer 71 Views
PdfProcessing
Philip
Top achievements
Rank 1
Philip asked on 17 Nov 2022, 09:15 AM

I am trying to import HTML but when I try to export the radflowdocument it is blank .  (i've exported to both HTML and PDF)

this is in blazor WASM.


Thanks
Phil

1 Answer, 1 is accepted

Sort by
0
Maria
Telerik team
answered on 18 Nov 2022, 05:49 AM

Hi Philip,

To import an HTML file to RadFlowDocument and to export the document to PDF format you can use the RadWordsProcessing library. To import the HTML file you have to use HtmlFormatProvider. The link shows an example of how to import the file. For the export to the PDF format, you have to use PdfFormatProvider class which allows you to export the RadFlowDocument to PDF. I am sending you a link to this article as well: Export To Pdf

I hope this information is useful for you. I am not sure what is the exact reason for the blank document. Can you send me a sample project so I can test it on my side and find out what could be the reason for this?

I am looking forward to your answer.

Regards,
Maria
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/.

Tags
PdfProcessing
Asked by
Philip
Top achievements
Rank 1
Answers by
Maria
Telerik team
Share this question
or