ByteScout Premium Suite - C# - Merge Protected PDF Documents with PDF Extractor SDK - ByteScout

ByteScout Premium Suite – C# – Merge Protected PDF Documents with PDF Extractor SDK

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – C# – Merge Protected PDF Documents with PDF Extractor SDK

How to merge protected PDF documents with PDF extractor SDK in C# with ByteScout Premium Suite

Learn to merge protected PDF documents with PDF extractor SDK in C#

Sample source code below will display you how to manage a complex task like merge protected PDF documents with PDF extractor SDK in C#. What is ByteScout Premium Suite? It is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can help you to merge protected PDF documents with PDF extractor SDK in your C# application.

This prolific sample source code in C# for ByteScout Premium Suite contains various functions and other necessary options you should do calling the API to merge protected PDF documents with PDF extractor SDK. This C# sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! This basic programming language sample code for C# will do the whole work for you to merge protected PDF documents with PDF extractor SDK.

The trial version of ByteScout Premium Suite can be downloaded for free from our website. It also includes source code samples for C# and other programming languages.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.cs
      
using System.Diagnostics; using Bytescout.PDFExtractor; namespace MergeDocuments { // // This example demonstrates how to provide password for protected PDF files. // class Program { static void Main(string[] args) { string[] inputFiles = new string[] { @".\encrypted1 (password is 'password').pdf", @".\encrypted2 (password is 'password').pdf", }; using (DocumentMerger merger = new DocumentMerger("demo", "demo")) { // Handle `PasswordRequired` event merger.PasswordRequired += new PasswordEventHandler(merger_PasswordRequired); // Ignore document permissions merger.CheckPermissions = false; merger.Merge(inputFiles, @".\result.pdf"); } // Open result document in default associated application (for demo purpose) ProcessStartInfo processStartInfo = new ProcessStartInfo("result.pdf"); processStartInfo.UseShellExecute = true; Process.Start(processStartInfo); } static void merger_PasswordRequired(object sender, string document, ref string password) { // Ask user for password and return it using `password` parameter password = "password"; } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next