Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
GroupDocsGists / README.md
Last active July 1, 2025 11:11
How to merge PDF Files in Node.js

Merge PDF Files in Node.js

Looking for a quick way to merge PDF files? This Gist shows how to efficiently combine multiple PDF documents into a single file using Node.js.

📦 Prerequisites

To get started, ensure that you have Node.js installed on your machine. Additionally, you'll need to install the GroupDocs.Merger package. You can download a free trial of GroupDocs.Merger and use a temporary license for unrestricted usage of our library. This library supports file types like PDF, DOCX, and XLSX, among others.

🧩 Key Capabilities

  • Effortlessly merge multiple PDF files into a single document for better organization.
  • Handle various file formats, not just PDFs, which includes Word, Excel, and images.
@GroupDocsGists
GroupDocsGists / MergePdf.cs
Last active June 25, 2025 13:14
How to merge PDF files in C#
using System;
using System.IO;
namespace GroupDocs.Merger.Examples.CSharp.BasicUsage
{
/// <summary>
/// This example demonstrates how to merge multiple PDF files into single file.
/// For more details about merging Portable Document (.pdf) files please check this documentation article
/// https://docs.groupdocs.com/merger/net/merge/pdf
/// </summary>
@GroupDocsGists
GroupDocsGists / README.md
Last active June 25, 2025 13:18
How to merge PDF files in Python

Merge PDF Files in Python

In this snippet, you’ll discover how to merge PDF files, leveraging a concise Python example to combine documents effortlessly. This guide will help you streamline merging PDFs along with various other document types like Word and Excel, enhancing your workflow.

📦 Prerequisites

To get started, you need to install the GroupDocs.Merger SDK. Make sure you have an active GroupDocs license and Python installed on your system. You can download a free trial of GroupDocs.Merger for Python via .NET and use a temporary license for unrestricted usage of our library. This works for various file types including PDF, DOCX, PPTX, and XLSX.

🧩 Key Capabilities

  • Combine multiple PDF files into a single document seamlessly.
  • Utilize bookmark features when merging PDF files to maintain navigation.
@GroupDocsGists
GroupDocsGists / ViewPresentation.cs
Last active June 21, 2025 15:48
How to Open PowerPoint PPT/PPTX Presentations
// How to View PPT/PPTX Presentations using C#
using GroupDocs.Viewer.Options;
using (Viewer viewer = new Viewer("path/presentation.pptx"))
{
PdfViewOptions options = new PdfViewOptions("path/presentation.pdf");
viewer.View(options);
}
@GroupDocsGists
GroupDocsGists / ViewWordDocument.cs
Last active March 25, 2025 07:40
How to Open Word Documents Programmatically
// View Word Documents using C#
using GroupDocs.Viewer.Options;
...
using (Viewer viewer = new Viewer("path/document.docx"))
{
PdfViewOptions options = new PdfViewOptions("path/Word-Document.pdf");
viewer.View(options);
}
@GroupDocsGists
GroupDocsGists / readme.md
Created December 31, 2024 04:57
Convert SVG to PNG using Node.js
@GroupDocsGists
GroupDocsGists / docx_to_pdf.js
Last active September 20, 2024 10:11
How to Convert Word to PDF using Node.js
// Convert the Word Document to PDF format using Node.js
// Load the source DOCX file
const converter = new groupdocs.conversion.Converter("sample.docx");
// Set the convert options for PDF format
const options = new groupdocs.conversion.PdfConvertOptions();
// Convert to PDF format
converter.convert("converted.pdf", options);
@GroupDocsGists
GroupDocsGists / AddTilingWatermark.java
Last active July 16, 2025 10:41
How To Add Tiling Watermark to a PDF in Java
// Specify an absolute or relative path to your document. Ex: "C:\\Docs\\photo.png"
Watermarker watermarker = new Watermarker("photo.png");
// Use path to the image as constructor parameter
ImageWatermark watermark = new ImageWatermark("watermark.jpg");
// Add watermark to the document
watermarker.add(watermark);
watermarker.save("destin.png");
watermark.close();
watermarker.close();
@GroupDocsGists
GroupDocsGists / AddTilingWatermark.cs
Last active June 12, 2025 12:23
How To Add Tiling Watermark to a PDF in C#
using GroupDocs.Watermark;
using GroupDocs.Watermark.Options;
using System.Drawing;
string filePath = "sample.pdf";
string outputPath = "watermarked_output.pdf";
// Load your document
using (Watermarker watermarker = new Watermarker(filePath))
{
@GroupDocsGists
GroupDocsGists / AddImageWatermarkToDocument.js
Last active June 12, 2025 12:19
How To Add Image Watermark to a Document in Node.js solutions
// require the GroupDocs.Watermark module
const groupdocsWatermark = require('@groupdocs/groupdocs.watermark')
// Initialize the Watermarker class
const watermarker = new groupdocsWatermark.Watermarker(inDocumentPath);
// Create an Image Watermark
const imageWatermark = new groupdocsWatermark.ImageWatermark(imageFilePath);
// Set Watermark Alignment