Bahasa Indonesia Français Tiếng Việt فارسی Deutsch Italiano Türkçe ภาษาไทย English Polski Русский 日本語 Español Português (Brasil) العربية

Document Conversion in C#

Wordize for .NET converts documents between formats while preserving structure, styles, and formatting. The Converter class delivers accurate document transformation for seamless format migration.

Wordize Module Requirements:
  • Core for .NET - base module required for all conversion operations
  • Web for .NET - for web formats: HTML, Markdown, MHTML
  • Rendering for .NET - for exporting to PDF, XPS, and images
  • PDF Load for .NET - for reading PDF documents
  • eBook for .NET - for eBook formats: EPUB, MOBI, AZW3
  • OpenOffice for .NET - for OpenOffice formats: ODT, OTT

.NET API Features for Document Conversion

  • Convert() method for format transformation
  • Automatic format detection based on file extensions
  • Configure loading parameters via LoadOptions
  • Control output parameters through SaveFormat
  • Fluent API support for streamlined conversion configuration

Common Document Conversion Scenarios

  • PDF editing: convert PDF to Word for content modification
  • Web publishing: convert office documents to HTML for website publication
  • Format standardization: batch convert documents for unified standards
  • Mobile adaptation: convert document pages to images for mobile apps

Test document conversion in C# using our interactive online demo. Upload a file in any supported format, select the target format, run the conversion, and download the result. The provided C# code is ready for integration into your .NET project.

C#
Run code
Test Wordize SDK - upload a document and explore code examples
Select output format from the list
using Wordize.Conversion;

Converter.Convert("Input.docx", "Output.pdf");
using Wordize.Conversion; Converter.Convert("{{input1}}", "{{output}}"); using Wordize.Conversion; using Wordize.Saving; var imageStreams = Converter.ConvertToImages("{{input1}}", new ImageSaveOptions(SaveFormat.{{saveFormat}})); foreach (var (stream, page) in imageStreams.Select((s, i) => (s, i))) { using var _ = stream; stream.Position = 0; using var file = File.Create($"Output_{page + 1}.{{outputExt}}"); stream.CopyTo(file); } using Wordize.Conversion; using Wordize.Saving; ImageSaveOptions saveOptions = new ImageSaveOptions(SaveFormat.{{saveFormat}}); saveOptions.PageLayout = MultiPageLayout.Vertical(10); Converter.Create() .From("{{input1}}") .To("{{output}}", saveOptions) .Execute();
Run code

How to Convert Word and PDF Documents in C#

  1. Add Wordize for .NET to your C# project
  2. Call the Converter.Convert() method, specifying input and output file names as parameters. Formats are automatically detected based on file extensions
  3. Get the converted file
5%