Skip to content

About

GroupDocs.Merger.LowCode - C# Code Examples

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

GroupDocs.Merger.LowCode - C# Code Examples

This directory contains 38 complete, runnable C# examples for GroupDocs.Merger.LowCode. They are generated from the documentation at https://docs.groupdocs.net/merger/, so every example matches a code sample in the docs.

πŸ“‹ Overview

πŸ“ Directory Structure

The examples mirror the structure of the documentation:

/
β”œβ”€β”€ πŸ“‚ Examples/
β”‚   β”œβ”€β”€ πŸ“‚ developer-guide/ (1 examples)
β”‚   β”œβ”€β”€ πŸ“‚ developer-guide/handling-errors/ (2 examples)
β”‚   β”œβ”€β”€ πŸ“‚ developer-guide/loading-source-documents/ (3 examples)
β”‚   β”œβ”€β”€ πŸ“‚ developer-guide/saving-output-documents/ (3 examples)
β”‚   β”œβ”€β”€ πŸ“‚ developer-guide/using-join-docx/ (3 examples)
β”‚   β”œβ”€β”€ πŸ“‚ developer-guide/using-join-pdf/ (3 examples)
β”‚   β”œβ”€β”€ πŸ“‚ developer-guide/using-join-pptx/ (2 examples)
β”‚   β”œβ”€β”€ πŸ“‚ developer-guide/using-remove-pages-pdf/ (4 examples)
β”‚   β”œβ”€β”€ πŸ“‚ developer-guide/using-split-docx/ (4 examples)
β”‚   β”œβ”€β”€ πŸ“‚ developer-guide/using-split-pdf/ (6 examples)
β”‚   β”œβ”€β”€ πŸ“‚ developer-guide/using-split-pptx/ (4 examples)
β”‚   β”œβ”€β”€ πŸ“‚ getting-started/quick-start-guide/ (1 examples)
β”‚   └── πŸ“‚ licensing/ (2 examples)
β”œβ”€β”€ πŸ“„ README.md
β”œβ”€β”€ πŸš€ run_all_examples.bat
β”œβ”€β”€ πŸš€ run_all_examples.ps1
└── πŸš€ run_all_examples.sh

🎯 Examples

Developer Guide

Handling Errors

Loading Source Documents

Saving Output Documents

Using JoinDocx to Merge DOCX Documents

Using JoinPdf to Merge PDF Documents

Using JoinPptx to Merge PPTX Documents

Using RemovePagesPdf to Remove Pages from PDF Documents

Using SplitDocx to Split DOCX Documents

Using SplitPdf to Split PDF Documents

Using SplitPptx to Split PPTX Documents

Quick Start Guide

Licensing

πŸš€ How to Run Code Examples

Prerequisites

  • .NET SDK that supports net10.0
  • GroupDocs.Merger.LowCode license keys: the examples read them from the GD_PUBLIC_KEY and GD_PRIVATE_KEY environment variables and stop with an error when they are not set. A temporary license works too.
  • Sample files (copied into each example folder)

Set Up the License

Option 1: Environment Variables (Recommended)

# 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-key

Option 2: Direct in Code

Edit the Program.cs file and replace the placeholder values:

var publicKey = "your-public-key";
var privateKey = "your-private-key";

Running Individual Examples

  1. Navigate to an example directory:
    cd Examples/developer-guide/CopyTheCodeExample
  2. Run the example:
    dotnet run
  3. Look for the generated files in the example directory.

Running All Examples

  • Windows (Command Prompt): run_all_examples.bat
  • Windows (PowerShell): .\run_all_examples.ps1
  • Linux/macOS: ./run_all_examples.sh

The scripts read the license keys from the environment variables. They skip the 3 examples that load a license file or keys from Program.cs; put your license into those files and run them individually.

πŸ†˜ Support

About

GroupDocs.Merger.LowCode - C# Code Examples

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages