What is difference between radfixeddocument and radflowdocument?

0 Answers 690 Views
General Discussions PdfProcessing
Alexandre
Top achievements
Rank 1
Iron
Iron
Alexandre asked on 09 May 2022, 03:08 PM
I need to convert html to pdf and not sure which one I should use?
Svilen
Telerik team
commented on 10 May 2022, 12:40 PM

Hey, Alexandre,

The RadFixedDocument is a type, used by the RadPdfProcessing library to represent and work with PDF files, while the RadFlowDocument is the equivalent type for the RadWordsProcessing library and is used to work with .docx files.

The RadWordsProcessing library supports more formats than RadPdfProcessing and is essentially the middle piece when converting HTML to PDF. The original HTML file or string is parsed using the HtmlFormatProvider and imported into a RadFlowDocument, which is then exported to a PDF file using the PdfFormatProvider. I've attached a small .NET Framework project, which does this for your ease. 

To do this, the project makes use of several assemblies listed in our RadWordsProcessing: Getting Started article:

  • Telerik.Windows.Documents.Core.dll
  • Telerik.Windows.Documents.Flow.dll
  • Telerik.Windows.Zip.dll
  • Telerik.Windows.Documents.Flow.FormatProviders.Pdf.dll 

Note that the last library is only used to export a RadFlowDocument to PDF. If you need to manipulate a PDF file it is better to try the RadPdfProcessing library, which uses different assemblies. Here is a great place to start with it - RadPdfProcessing: Getting Started.

I hope this is useful to you. Please let me know if I can further help.

Regards,
Svilen
Progress Telerik

No answers yet. Maybe you can help?

Tags
General Discussions PdfProcessing
Asked by
Alexandre
Top achievements
Rank 1
Iron
Iron
Share this question
or