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:
You have configured your development environment as described in the System Requirements.
Replace the contents of Program.cs with the following code to convert a DOCX file to PDF:
usingGroupDocs.Conversion.LowCode;// Copy and paste your license keysvarpublicKey="<your public license key>";varprivateKey="<your private license key>";// Set the licenseLicense.Set(publicKey,privateKey);// Create a converter for a DOCX filevarconverter=newDocxToPdfConverter("business-plan.docx");// Convert to PDFconverter.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:
Developer Guide: Learn about each document conversion plugin features.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.