Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
GroupDocsGists / CreatePdfBinderFromFolder.cs
Created April 24, 2026 15:59
Examples of merging multiple document formats into a PDF binder, extracting pages, and validating page count.
// Folder containing source documents
string folderPath = "./input_documents";
string outputPath = "folder_binder.pdf";
var extensions = new[] { ".pdf", ".docx", ".xlsx" };
var files = Directory
.EnumerateFiles(folderPath)
.Where(f => extensions.Contains(
Path.GetExtension(f).ToLowerInvariant()))
.OrderBy(f => Path.GetExtension(f).ToLowerInvariant() == ".pdf"
@GroupDocsGists
GroupDocsGists / AddTrackingWatermark.cs
Created April 19, 2026 08:21
Examples demonstrating scanning, verification, compliance reporting, and management of watermarks using GroupDocs.Watermark for .NET.
using (Watermarker watermarker = new Watermarker(filePath))
{
string trackingText = $"ID:{recipientId}";
var watermark = new TextWatermark(trackingText, new Font("Arial", 6))
{
ForegroundColor = Color.FromArgb(5, 200, 200, 200),
HorizontalAlignment = HorizontalAlignment.Right,
VerticalAlignment = VerticalAlignment.Bottom,
Opacity = 0.02
@GroupDocsGists
GroupDocsGists / ApplyBatchLogoWatermark.cs
Created April 16, 2026 15:11
Apply text or image watermarks across multiple documents and replace outdated logos with GroupDocs.Watermark for .NET
if (!File.Exists(logoPath))
{
return;
}
Directory.CreateDirectory(outputFolder);
int processed = 0, failed = 0;
foreach (var filePath in files)
{
@GroupDocsGists
GroupDocsGists / ExtractDataFromAttachments.cs
Created March 5, 2026 17:27
Demonstrates in‑memory extraction of text and metadata from documents inside ZIP and RAR archives using GroupDocs.Parser for .NET.
// Extracts data from attachments: file path, metadata, and text from each document.
foreach (ContainerItem item in attachments)
{
PrintMetadata(item.Metadata);
try
{
using (Parser itemParser = item.OpenParser())
{
if (itemParser == null)
@GroupDocsGists
GroupDocsGists / README.md
Created February 12, 2026 15:42
Demonstrates how to apply a digital signature to specialized ODT and OTT documents while preserving file structure with GroupDocs.Signature.

Add Digital Signatures to ODT and OTT Files using GroupDocs.Signature for .NET

This gist shows how to add a digital signature to OpenDocument Text (ODT) and OpenDocument Template (OTT) files while keeping their internal structure intact using the GroupDocs.Signature .NET library.

📦 Prerequisites

  • .NET environment (e.g., .NET 6.0 or later)
  • GroupDocs.Signature for .NET package – install via NuGet (Install-Package GroupDocs.Signature)
  • A digital certificate file (.pfx) and optional image for visual representation
  • Temporary license key (obtain from GroupDocs temporary license)
@GroupDocsGists
GroupDocsGists / complete_code_example_jpg_to_svg_conversion.cs
Created January 15, 2026 19:49
Building a JPG to SVG File Converter in .NET
using System;
using GroupDocs.Conversion;
using GroupDocs.Conversion.Options.Convert;
namespace JpgToSvgDemo
{
class Program
{
static void Main(string[] args)
{
@GroupDocsGists
GroupDocsGists / introduction_converting_vector_graphics_to_raster_.cs
Created December 17, 2025 07:31
Convert SVG to JPG with GroupDocs.Conversion for .NET
using System;
using GroupDocs.Conversion;
using GroupDocs.Conversion.Options.Convert;
using System.Drawing;
namespace SvgToJpgDemo
{
class Program
{
static void Main(string[] args)
@GroupDocsGists
GroupDocsGists / introduction_converting_json_data_to_xml_is_a_comm.cs
Created December 10, 2025 11:19
Convert JSON to XML with GroupDocs.Conversion for .NET
using System;
using GroupDocs.Conversion;
using GroupDocs.Conversion.Options.Convert;
using GroupDocs.Conversion.Options.Load;
namespace JsonToXmlDemo
{
class Program
{
static void Main(string[] args)
private static void AddLockedHeaderWatermark()
{
Console.WriteLine("Adding locked header watermark...");
var loadOptions = new WordProcessingLoadOptions();
using (var watermarker = new Watermarker(InputFile, loadOptions))
{
var watermark = new TextWatermark("Company Confidential", new Font("Arial", 19))
{
VerticalAlignment = VerticalAlignment.Center,
@GroupDocsGists
GroupDocsGists / README.md
Last active July 8, 2025 11:28
How to merge PowerPoint presentations in Node.js

Merge PowerPoint Presentations in Node.js

Want to streamline your merge presentation tasks in Node.js? Below is a friendly, step-by-step guide that uses concise code snippets to show how to combine pptx files effortlessly.

📦 Prerequisites

🧩 Key Capabilities