|
Combine two PDF Files from specific pages into a single multi page PDF File.
bool MergeEx( string strSource1 , int iSrc1PageStart , int iSrc1PageEnd, string strSource2 , int iSrc2PageStart , int iSrc2PageEnd, int iSrc1PageEnd, string strMergedFile )
|
Parameter strSource1 the path of source pdf file 1.
iSrc1PageStart Specifies start of page number for first PDF File. The first page is 0.
iSrc1PageEnd Specifies end of page number for first PDF File. -1 mean total count of the pages.
strSource2 the path of source pdf file 2.
iSrc2PageStart Specifies start of page number for second PDF File. The first page is 0.
iSrc1PageEnd Specifies end of page number for second PDF File. -1 mean total count of the pages.
strMergedFile the path of output pdf file.
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.MergeEx(strinputpath1, 0, 1, strinputpath2, 0, -1, stroutpath);
|
|
|