The PDF SDK for .NET  product has been acquired by Sybrex company in January, 2011 and not available on our web-site anymore.

NEW: Check our new rich PDF reports generator for Javascript (completely client side generation): PDF Generator SDK for Javascriptclick here to read more details...


For 3rd party server side C# open-source PDF generation library?

Check the blog article: .NET Bear, Do You Know Any Free PDF Generation Libraries For Use In Commercial Applications?
 

Our commercial products for PDF format:

PDF Extractor SDK - extract tables, text, structured data from PDF files in your apps

PDF Renderer SDK - render PDF files to PNG, BMP, TIFF images in your apps

PDF To HTML SDK - convert PDF to HTML with images and formatting preserved

How to use copy pages from one PDF document into another PDF document using Bytescout.PDF library for .NET applications

How to split and merge PDF documents using Bytescout.PDF library for .NET

In this example Bytescout.PDF library for .NET extracts pages from one PDF document (images.pdf) and merges with another existing document (HelloWorld.pdf) and then saves into "DestinationDocument.PDF" document file.

Download example source code: bytescoutpdf_example_split_and_merge_pdf.zip (600 KB)

PDF generated using pages extracted from source PDF document


using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using Bytescout.PDF;

namespace PagesAPI
{
class Program
{
static void Main(string[] args)
{
// Create main PDF Doc Engine
PDFDocEngine engine = new PDFDocEngine("demo", "demo");

// Load Source Document
//Document SourceDocument = engine.AddDocument("Images.pdf");
// Load Destination Document
//Document DestinationDocument = engine.AddDocument("HelloWorld.pdf");

// Create new pages manager
PagesManager manager = new PagesManager(engine, "images.pdf", "HelloWorld.pdf");

// Take each page from source PDF document
for (uint i = 0; i < manager.SourcePageCount; i++)
manager.AddPage(i);

// Copy all selected in connection pages from source to destination PDF Document
manager.Execute();


// Save destination document
//DestinationDocument.Save("DestinationDocument.pdf");

// open generated PDF document in default PDF viewer installed in Windows
Process.Start("DestinationDocument.pdf");
}
}
}

Download example source code: bytescoutpdf_example_split_and_merge_pdf.zip (600 KB)

Filed in: PDF SDK for .NET

Tutorials: