This directory contains 70+ complete, runnable examples demonstrating various features of GroupDocs.Conversion.LowCode. These examples provide practical implementations for document conversion scenarios.
- Package: GroupDocs.Conversion.LowCode
- Language: C# (.NET 6.0+)
- Docs: https://docs.groupdocs.net/conversion/
The examples are organized to mirror the official documentation structure:
groupdocs-conversion-lowcode-examples-csharp/
├── 📂 licensing/
│ ├── 📂 SetLicenseFromFile/
│ └── 📂 SetLicenseKeys/
├── 📂 getting-started/
│ └── 📂 quick-start-guide/
│ └── 📂 AddConversionCode/
├── 📂 developer-guide/
│ ├── 📂 loading-source-documents/
│ │ ├── 📂 LoadFromFilePath/
│ │ ├── 📂 LoadFromStream/
│ │ └── 📂 SetLoadOptions/
│ ├── 📂 saving-converted-documents/
│ │ ├── 📂 SaveToFilePath/
│ │ ├── 📂 SaveToStream/
│ │ └── 📂 SetConvertOptions/
│ ├── 📂 using-doc-to-pdf-converter/
│ │ ├── 📂 BasicExample/
│ │ ├── 📂 DocToPasswordProtectedPdf/
│ │ ├── 📂 DocToPdfaFormat/
│ │ ├── 📂 DocWithCommentsToPdfWithoutComments/
│ │ ├── 📂 DocWithTrackedChangesToPdf/
│ │ ├── 📂 ProtectedDocToPdf/
│ │ └── 📂 SpecificDocPagesToPdf/
│ ├── 📂 using-docx-to-pdf-converter/
│ │ ├── 📂 BasicExample/
│ │ ├── 📂 DocxToPasswordProtectedPdf/
│ │ ├── 📂 DocxWithCommentsToPdfWithoutComments/
│ │ ├── 📂 DocxWithTrackedChangesToPdf/
│ │ ├── 📂 ProtectedDocxToPdf/
│ │ └── 📂 SpecificDocxPagesToPdf/
│ ├── 📂 using-html-to-pdf-converter/
│ │ ├── 📂 BasicExample/
│ │ ├── 📂 HtmlToPasswordProtectedPdf/
│ │ ├── 📂 HtmlToPdfWithSpecificPdfFormat/
│ │ ├── 📂 HtmlWithCustomCssStyling/
│ │ ├── 📂 HtmlWithZoomLevel/
│ │ └── 📂 SkipExternalResourcesReferencedInHtml/
│ ├── 📂 using-pdf-to-docx-converter/
│ │ ├── 📂 BasicExample/
│ │ ├── 📂 FlattenFieldsInFormFillablePdf/
│ │ ├── 📂 PdfToDocxWithA4PageSize/
│ │ ├── 📂 PdfToPasswordProtectedDocx/
│ │ ├── 📂 PdfWithAnnotationsToDocxWithoutAnnotations/
│ │ └── 📂 ProtectedPdfToDocx/
│ ├── 📂 using-pdf-to-md-converter/
│ │ ├── 📂 BasicExample/
│ │ ├── 📂 FlattenFieldsInFormFillablePdf/
│ │ ├── 📂 PdfWithAnnotationsToMarkdownWithoutAnnotations/
│ │ ├── 📂 ProtectedPdfToMarkdown/
│ │ └── 📂 SkipImagesWhenConvertingPdfToMarkdown/
│ ├── 📂 using-pdf-to-pdfa-converter/
│ │ ├── 📂 BasicExample/
│ │ ├── 📂 FlattenFieldsInFormFillablePdf/
│ │ ├── 📂 PdfToPasswordProtectedPdfa/
│ │ ├── 📂 PdfWithAnnotationsToPdfaWithoutAnnotations/
│ │ ├── 📂 ProtectedPdfToPdfa/
│ │ └── 📂 SpecificPdfPagesToPdfa/
│ ├── 📂 using-ppt-to-pdf-converter/
│ │ ├── 📂 BasicExample/
│ │ ├── 📂 PptToPasswordProtectedPdf/
│ │ ├── 📂 PptWithHiddenSlides/
│ │ ├── 📂 PptWithPreservedDocumentStructureForAccessiblePdf/
│ │ ├── 📂 ProtectedPptToPdf/
│ │ └── 📂 SpecificPptSlidesToPdf/
│ ├── 📂 using-pptx-to-pdf-converter/
│ │ ├── 📂 BasicExample/
│ │ ├── 📂 PptxToPasswordProtectedPdf/
│ │ ├── 📂 PptxWithHiddenSlides/
│ │ ├── 📂 PreserveDocumentStructureForAccessiblePdf/
│ │ ├── 📂 ProtectedPptxToPdf/
│ │ └── 📂 SpecificPptxSlidesToPdf/
│ ├── 📂 using-xls-to-pdf-converter/
│ │ ├── 📂 BasicExample/
│ │ ├── 📂 ProtectedXlsToPdf/
│ │ ├── 📂 SpecificSheetsFromXlsToPdf/
│ │ ├── 📂 XlsToPasswordProtectedPdf/
│ │ ├── 📂 XlsToPdfWithSpecificPdfFormat/
│ │ └── 📂 XlsWithHiddenSheets/
│ ├── 📂 using-xlsx-to-pdf-converter/
│ │ ├── 📂 BasicExample/
│ │ ├── 📂 ProtectedXlsxToPdf/
│ │ ├── 📂 SpecificSheetsFromXlsxToPdf/
│ │ ├── 📂 XlsxToPasswordProtectedPdf/
│ │ ├── 📂 XlsxToPdfWithSpecificPdfFormat/
│ │ └── 📂 XlsxWithHiddenSheetsToPdf/
│ └── 📂 CopyTheCodeExample/
├── 📄 GroupDocs.Conversion.LowCode.Examples.sln
├── 📄 LICENSE
├── 📄 README.md
├── 🚀 run_all_examples.bat
├── 🚀 run_all_examples.ps1
└── 🚀 run_all_examples.sh
- Quick Start Guide: Complete workflow example with licensing and basic conversion
- Set License Keys: Programmatic license setup using keys
- Set License From File: License setup using license file
- Load From FilePath: Load documents using file paths
- Load From Stream: Load documents using file streams
- Set Load Options: Configure document loading options
- Save To FilePath: Save converted documents to file paths
- Save To Stream: Save converted documents to streams
- Set Convert Options: Configure conversion options
- DOC to PDF: Convert legacy Word documents to PDF
- DOCX to PDF: Convert modern Word documents to PDF
- HTML to PDF: Convert HTML files to PDF
- PDF to DOCX: Convert PDF to Word documents
- PDF to Markdown: Convert PDF to Markdown format
- PDF to PDF/A: Convert PDF to archival format
- PPT to PDF: Convert PowerPoint presentations to PDF
- PPTX to PDF: Convert modern PowerPoint presentations to PDF
- XLS to PDF: Convert legacy Excel spreadsheets to PDF
- XLSX to PDF: Convert modern Excel spreadsheets to PDF
- .NET 6.0 or later installed on your system
- Valid GroupDocs license (trial or commercial)
- Sample files (automatically included with examples)
# Windows
set GD_PUBLIC_KEY=your-public-key
set GD_PRIVATE_KEY=your-private-key
# Linux/macOS
export GD_PUBLIC_KEY=your-public-key
export GD_PRIVATE_KEY=your-private-keyEdit the Program.cs file and replace placeholder values:
var publicKey = "your-public-key";
var privateKey = "your-private-key";-
Navigate to any example directory:
cd generated_examples/developer-guide/using-docx-to-pdf-converter/BasicExample -
Run the example:
dotnet run
-
Check the output:
- Look for generated files in the example directory
- Check console output for any errors or success messages
Use the provided scripts to run all examples sequentially:
run_all_examples.bat.\run_all_examples.ps1./run_all_examples.shEach example contains its own README.md file with:
- ✅ Example description and purpose
- ✅ Input and output files specification
- ✅ Step-by-step usage instructions
- ✅ Requirements and dependencies
- ✅ Code overview and key features
- ✅ Related documentation links
To learn more about a specific example:
- Navigate to the example folder
- Open the
README.mdfile - Follow the instructions
- License setup and configuration
- Document loading from various sources
- Conversion options and customization
- Output generation to different formats
- Error handling and best practices
- Real-world scenarios and use cases
- Input: DOC, DOCX, HTML, PDF, PPT, PPTX, XLS, XLSX
- Output: PDF, DOCX, Markdown, PDF/A
- Features: Password protection, page selection, format options
Error: Invalid license
Solution: Ensure your license keys are correctly set in environment variables or code.
Error: Could not find file 'sample.docx'
Solution: Check that sample files are present in the example directory.
Error: .NET 6.0 or later required
Solution: Install .NET 6.0 or later from Microsoft's website.
- Check the example's individual
README.mdfile - Review the official documentation
- Visit the GroupDocs support forum
- Official Documentation: Complete API reference and guides
- API Reference: Detailed class and method documentation
- Support Forum: Community support and discussions
MIT - see LICENSE for more details.