Skip to content

SyncfusionExamples/How-to-Export-SfRichTextEditor-Content-to-Word-and-PDF-in-.NET-MAUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

How to Export SfRichTextEditor Content to Word and PDF in .NET MAUI

This sample demonstrates how to export the contents of the .NET MAUI SfRichTextEditor to Word and PDF formats using Syncfusion controls. Enable users to save their rich text input as professional documents, supporting common business workflows and document sharing.

What You'll Learn

  • How to extract content from SfRichTextEditor in .NET MAUI.
  • How to export editor content to a Word document (.docx).
  • How to export editor content to a PDF file.
  • How to implement platform-specific save logic for Android, iOS, MacCatalyst, and Windows.

Benefits

  • Allow users to save and share rich text as Word or PDF files.
  • Integrate document export seamlessly into your MAUI app.
  • Support business and productivity scenarios with minimal code.
  • Provide a consistent export experience across all supported platforms.

Output

Exported Word (.docx) and PDF files containing the rich text editor’s content. ExportOutput

Prerequisites

  • Syncfusion.Maui.RichTextEditor NuGet package installed.
  • Syncfusion.DocIO.NET and Syncfusion.Pdf.NET NuGet packages for document export.
  • Syncfusion MAUI core configured in your MAUI app builder.
  • .NET MAUI environment set up and ready to build/run.

Troubleshooting

If you encounter a “path too long” exception when building this project, close Visual Studio and rename the repository folder to a shorter name, then rebuild the project.

For More Information

For a step-by-step procedure, refer to the Syncfusion Knowledge Base article: How to Export Rich Text Editor Content to Word and PDF in MAUI SfRichTextEditor?.

About

Learn how to export SfRichTextEditor content to Word and PDF in a .NET MAUI application. This sample demonstrates preserving rich text formatting such as fonts, headings, lists, and alignment while converting editor content into shareable documents across platforms.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages