ASP.NET PDF Processing SDK Component

Split

 

Splits one PDF document into two PDF files.
 

bool Split(
 string strSourceFile ,
 int iStartFromNo ,
 string strOutputFile1 ,
 string strOutputFile2 
)

 

Parameter
strSourceFile
the path of source pdf file.

iStartFromNo
Specifies the page to rotating. The first page is 0.

strOutputFile1
The new PDF File 1 generated after the split.

strOutputFile2
The new PDF File 2 generated after the split.


Return Value
Return true - successful
Return false - failed

Example

   

C# Syntax
using PDFProcessingWrapper;

 PDFProcessing obj = new PDFProcessing();
string stroutpath = HttpContext.Current.Server.MapPath("~/output/" + myUniqueFileName);
string strinputpath1 = HttpContext.Current.Server.MapPath("~/uploads/" + strInputPDFFile1);
string strinputpath2 = HttpContext.Current.Server.MapPath("~/uploads/" + strInputPDFFile2);
bool bResult = obj.Split(strinputpath1, iPageNumber - 1, stroutpath, stroutpath2);