Split PDF in C# for free with .NET Core and iText.Kernel.Pdf

0 Comments

using iText.Kernel.Pdf; namespace RvvFacturatie.Services { public class PdfService { public void Split(string filePath, string outputFolderPath) { // Make sure the output folder exists and is empty. if (Directory.Exists(filePath)) { Directory.Delete(filePath, true); } Directory.CreateDirectory(outputFolderPath); using (var