1. Home
  2. /
  3. GroupDocs.Conversion.LowCode
  4. /
  5. Getting Started
  6. /
  7. Quick Start Guide

Quick Start Guide

This guide provides a quick and practical overview of how to set up and start using GroupDocs.Conversion Document Conversion Plugins. In this example, you’ll learn how to create C# console application and use the GroupDocs.Conversion.LowCode package to convert a DOCX file to PDF. The steps are similar for other conversion plugins.

Prerequisites

Before you begin, make sure:

  1. You have configured your development environment as described in the System Requirements.
  2. Optionally, request a temporary license to evaluate the full functionality.

Set Up Your Development Environment

To build the example application, ensure .NET SDK 6.0 or later is installed. Visit the .NET download page to get the latest LTS version.

Create a Console Application

Tip
You can also skip the next steps and download the sample app that we’re going to buid here.

Create and navigate to a working folder:

mkdir convert-docx-to-pdf
cd convert-docx-to-pdf

Use the .NET CLI to generate a console app:

dotnet new console

Your project folder should now look like this:

πŸ“‚ convert-docx-to-pdf
 β”œβ”€β”€ obj
 β”œβ”€β”€ convert-docx-to-pdf.csproj
 └── Program.cs

Install GroupDocs.Conversion.LowCode Package

Use the .NET CLI to install the package:

dotnet add package GroupDocs.Conversion.LowCode

This adds a reference in your .csproj file with the latest available package version:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net9.0</TargetFramework>
    <RootNamespace>convert_docx_to_pdf</RootNamespace>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="GroupDocs.Conversion.LowCode" Version="25.6.0" />
  </ItemGroup>

</Project>

Add Conversion Code

Replace the contents of Program.cs with the following code to convert a DOCX file to PDF:

using GroupDocs.Conversion.LowCode;

// Copy and paste your license keys
var publicKey = "<your public license key>";
var privateKey = "<your private license key>";

// Set the license
License.Set(publicKey, privateKey);

// Create a converter for a DOCX file
var converter = new DocxToPdfConverter("business-plan.docx");

// Convert to PDF
converter.Convert("business-plan.pdf");

business-plan.docx is a sample file used in this example. Click here to download it.

business-plan.pdf is the expected output file. Click here to download it.

Run the Application

To run the app:

dotnet run

After execution, the business-plan.pdf file should appear in the project directory.

Explanation

  • new DocxToPdfConverter("business-plan.docx"): Initializes the converter with the input file.
  • converter.Convert("business-plan.pdf"): Converts the document and saves the output.

Next Steps

Once you’re comfortable with the basics, explore more: