ByteScout PDF Extractor SDK - C# - Split Protected PDF Document - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout PDF Extractor SDK – C# – Split Protected PDF Document

  • Home
  • /
  • Articles
  • /
  • ByteScout PDF Extractor SDK – C# – Split Protected PDF Document

How to split protected PDF document in C# and ByteScout PDF Extractor SDK

How to split protected PDF document in C#

On this page you will learn from code samples for programming in C#.Writing of the code to split protected PDF document in C# can be done by developers of any level using ByteScout PDF Extractor SDK. ByteScout PDF Extractor SDK: the SDK that helps developers to extract data from unstructured documents, pdf, images, scanned and electronic forms. Includes AI functions like automatic table detection, automatic table extraction and restructuring, text recognition and text restoration from pdf and scanned documents. Includes PDF to CSV, PDF to XML, PDF to JSON, PDF to searchable PDF functions as well as methods for low level data extraction. It can split protected PDF document in C#.

You will save a lot of time on writing and testing code as you may just take the C# code from ByteScout PDF Extractor SDK for split protected PDF document below and use it in your application. Just copy and paste the code into your C# application’s code and follow the instruction. Enjoy writing a code with ready-to-use sample codes in C#.

Free trial version of ByteScout PDF Extractor SDK is available for download from our website. Get it to try other source code samples for C#.

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
      
// // This example demonstrates how to provide password for protected PDF files. // using System; using System.IO; using Bytescout.PDFExtractor; namespace SplittingExample { class Program { static void Main(string[] args) { string inputFile = @".\encrypted (password is 'password').pdf"; using (DocumentSplitter splitter = new DocumentSplitter("demo", "demo")) { // Handle `PasswordRequired` event splitter.PasswordRequired += new PasswordEventHandler(splitter_PasswordRequired); // Ignore document permissions splitter.CheckPermissions = false; // Split document splitter.Split(inputFile, "part1.pdf", @"part2.pdf", 3); } Console.WriteLine(); Console.WriteLine("Press any key..."); Console.ReadKey(); } static void splitter_PasswordRequired(object sender, string document, ref string password) { // Ask user for password and put it to `Password` property. password = "password"; } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout PDF Extractor SDK Home Page

Explore ByteScout PDF Extractor SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Extractor SDK 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 PDF Extractor SDK Home Page

Explore ByteScout PDF Extractor SDK Documentation

Explore Samples

Sign Up for ByteScout PDF Extractor SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next