Every ByteScout tool includes simple example C# source codes that you can get here or in the folder with installed ByteScout product. ByteScout Premium Suite is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can be applied to split protected PDF document with PDF extractor SDK using C#.
Want to save time? You will save a lot of time on writing and testing code as you may just take the C# code from ByteScout Premium Suite for split protected PDF document with PDF extractor SDK below and use it in your application. IF you want to implement the functionality, just copy and paste this code for C# below into your code editor with your app, compile and run your application. Enjoy writing a code with ready-to-use sample C# codes.
ByteScout provides the free trial version of ByteScout Premium Suite along with the documentation and source code samples.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
// // 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"; } } }
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: