ASP.NET PDF Processing SDK Component

AddPage

 

Add the PDF File to specific position of existing PDF File.
 

bool AddPage(
 string strSourceFile ,
 int iPageInsert ,
 string strAppendFile ,
 string strOutputFile 
)

 

Parameter
strSourceFile
the path of source pdf file.

iPageInsert
Position to insert the other pdf file. The first page is zero.

strAppendFile
the path of the other pdf file.

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.AddPage(strinputpath1, iPageInsert,strinputpath2, stroutpath);