Quickly learn how to split pdf document with pdf sdk in C# with this sample source code. ByteScout Premium Suite: the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can split pdf document with pdf sdk in C#.
These C# code samples for C# guide developers to speed up coding of the application when using ByteScout Premium Suite. Follow the instructions from scratch to work and copy the C# code. Use of ByteScout Premium Suite in C# is also described in the documentation included along with the product.
Our website gives trial version of ByteScout Premium Suite for free. It also includes 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)
using System.Diagnostics; using Bytescout.PDF; namespace SplitDocument { class Program { static void Main(string[] args) { // Open first document Document document1 = new Document("document1.pdf"); document1.RegistrationName = "demo"; document1.RegistrationKey = "demo"; // Create result document that will contain only required pages Document document2 = new Document(); document2.RegistrationName = "demo"; document2.RegistrationKey = "demo"; // Add 1st and 3rd pages of the first document to the result document document2.Pages.Add(document1.Pages[0]); document2.Pages.Add(document1.Pages[2]); // Save result document document2.Save("result.pdf"); // Open result document in default associated application (for demo purpose) ProcessStartInfo processStartInfo = new ProcessStartInfo("result.pdf"); processStartInfo.UseShellExecute = true; Process.Start(processStartInfo); } } }
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: