ASP.NET PDF Processing SDK Component

Merge

 

Combine two PDF Files into a single multi-page PDF File.
 

bool Merge(
 string strSource1 ,
 string strSource2 ,
 string strOutputFile 
)

 

Parameter
strSource1
the path of source pdf file 1.

strSource2
the path of source pdf file 2.

strOutputFile
the path of the 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.Merge(strinputpath1, strinputpath2, stroutpath);