How can I remove some pages from an input PDF file?

Using VeryPDFToobox, you can easily remove any specified pages from an input PDF. Just view the following example to see how to do:
The example shows how to remove P13 from the input file:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Call_PDFToolBoxCom
{
    class Program
    {
        static void Main(string[] args)
        {
            string strExePath = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;
            PDFToolBoxCom.PDFToolBoxCom p = new PDFToolBoxCom.PDFToolBoxCom();
            string strReturn = p.RunCMD(@"A=" + strExePath + @"\in1.pdf  -merge A1-12 A14-end -outfile "+ strExePath + @"\out1.pdf");
            Console.WriteLine(strReturn);
            Console.WriteLine("Please enter any key to continue...");
            Console.ReadKey();
        }
    }
}

______________________
Lear more: VeryPDF PDF Toolbox Component for .NET.

Related Posts