GroupDocs.Conversion at a glance

Explore the capabilities of the API for swift and flawless conversion of PDF, Microsoft Office, HTML, eBook, and image files within .NET applications

Illustration conversion

Streamlined conversion

With GroupDocs.Conversion API you can effortlessly convert documents of diverse formats to PDF, Microsoft Office, HTML, eBook, and image files. The API provides flexible and robust options, ensuring the integrity of content and document structure throughout the conversion process.

Effortless switch between formats

The process of using GroupDocs.Conversion API is incredibly straightforward, requiring just one method and a set of options to effortlessly switch between different formats.

Cross-platform compatibility

Explore a conversion solution with inherent cross-platform compatibility, catering to the broader user base and ensuring optimal performance across various environments for all your document conversion requirements.

Platform independence

GroupDocs.Conversion for .NET supports the following operating systems, frameworks and package managers

Amazon
Docker
Azure
VS Code
ReSharper
macOS
Linux
NuGet

Supported file formats

GroupDocs.Conversion for .NET supports operations with the following file formats.

Document formats

  • Documents: PDF, XPS, TEX
  • Word: DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF, TXT
  • PowerPoint: PPT, PPTX, PPS, PPSX, ODP, OTP
  • Excel: XLS, XLSX, XLSM, XLSB, XLTM, XLTX, XLT, XLAM
  • Visio: VSDX, VSDM, VSSX, VSTX, VSTM, VSSM, VSX, VTX, VDX
  • OpenDocument: ODT, OTT, ODS

Images & Multimedia

  • Images: BMP, JPEG, PNG, GIF, TIFF, SVG, PS
  • Diagram: VSDX, DRAW, LUCIDCHART
  • CAD & GIS: DWG, DXF, DWF, IFC, SHP, KML, GEOJSON
  • Audio: MP3, WAV, FLAC, AAC, OGG
  • Video: MP4, AVI, MKV, MOV, WMV
  • 3D & Vector: SVG, AI, EPS, CDR, STL, OBJ, FBX, DAE, GLB

Other formats

  • eBook: EPUB, MOBI, AZW, FB2
  • Web: HTML, MHTML, MHT
  • Archives: ZIP, TAR, RAR, 7Z, BZ2, GZ
  • Email & Outlook: PST, OST, MSG, EML
  • Finance: QFX, OFX
  • OneNote: ONE

GroupDocs.Conversion features

Seamlessly convert PDF and office documents to HTML, JPG, PNG, BMP, TIFF, SVG, and many other formats. GroupDocs.Conversion for C# API is designed to be easy to use and integrate into your project. It supports all popular document formats with the ability to customize the conversion process.

Feature icon

Multi-format conversion

Convert files between various formats, including PDF, DOCX, XLSX, PPTX, and more, with ease.

Feature icon

High-fidelity output

Preserve the original quality and formatting of documents during the conversion process.

Feature icon

Converting multiple files

Convert multiple files and combine them into an archive, simplifying the organization of converted content.

Feature icon

Multipage document to images

Convert multipage documents to images page by page, enabling precise control over the transformation process and facilitating image-based document extraction and analysis.

Feature icon

Customizable settings

Fine-tune conversion parameters such as resolution, quality, and layout to meet specific requirements.

Feature icon

Secure processing

Ensure data privacy with password-protected file conversion options.

Feature icon

API integration

Seamlessly integrate the conversion capabilities into your C# applications, making it a seamless part of your workflow.

Feature icon

Robust conversion

Ensure reliable and error-free file conversions, guaranteeing the accuracy and integrity of your transformed documents.

Feature icon

Convert documents from archives

Extract and convert documents from archives, enabling the transformation of content stored within compressed files.

Code samples

Some use cases of typical GroupDocs.Conversion for .NET operations

Convert PDF to image

A commonly encountered scenario involves converting an entire PDF document or specific pages into a collection of images. GroupDocs.Conversion for .NET offers the capability to convert PDFs into various image formats, such as TIFF, JPG, PNG, GIF, BMP, and more. Unlike other conversions, this process requires the declaration of a SavePageStream delegate, which specifies the naming format for the saved images. You can select your preferred image format using the ImageFileType class.

Convert PDF to PNG in C#

using GroupDocs.Conversion;
using GroupDocs.Conversion.FileTypes;
using GroupDocs.Conversion.Options.Convert;

// Load the source PDF file
using (var converter = new Converter("resume.pdf"))
{
  var getPageStream = (int page) => File.Create($"resume-page-{page}.png");

    // Set the convert options and specify the output image type
    var convertOptions = new ImageConvertOptions { 
      Format = ImageFileType.Png
    };          
    
    // Convert each page of PDF document to PNG
    converter.Convert(getPageStream, convertOptions);
}

Convert a segment of a large document

With GroupDocs.Conversion for .NET, you can effortlessly convert specific pages from a lengthy document. You have two methods to accomplish this, depending on your requirements. You can either convert a range of pages or convert specific pages.

Convert DOCX (pages 2-4) to PDF in C#

using GroupDocs.Conversion;
using GroupDocs.Conversion.Options.Convert;

// Load the source DOCX file  
using (Converter converter = new Converter("booklet.docx"))
{
    // Set the options and specify the range of pages to convert       
    var convertOptions = new PdfConvertOptions 
    { 
      PageNumber = 2, 
      PagesCount = 3 
    };
    
    // Convert pages 2-4 to PDF       
    converter.Convert("pages-2-4.pdf", convertOptions);
}

Fluent syntax: A streamlined approach

Fluent syntax offers a concise notation for common actions within the GroupDocs.Conversion for .NET API. The code samples below demonstrate how to leverage the fluent syntax:

Convert DOCX to PDF in C# using fluent syntax

using GroupDocs.Conversion;

FluentConverter
    .Load("schedule.docx")
    .ConvertTo("schedule.pdf")
    .Convert();

 English