|
Combine two PDF Files into a single multi page PDF File and create the bookmarks.
bool MergeWithBookmarks( string strSource1 , string strSource2 , string strMergedFile , string strBookmarkRootTitle, string src1OutlineitemTitle, string src2OutlineitemTitle )
|
Parameter strSource1 the path of source pdf file 1.
strSource2 the path of source pdf file 2.
strMergedFile the path of output pdf file.
strBookmarkRootTitle The title of root bookmark, if this value is empty, it will use default title named "Merged Document"
src1OutlineitemTitle The title of outline item 1, if this value is empty, it will use the file name of first PDF file.
src2OutlineitemTitle The title of outline item 2, if this value is empty, it will use the file name of second 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.MergeWithBookmarks(strinputpath1, strinputpath2, stroutpath, strRootTitle, strOutlineItem1, strOutlineItem2);
|
|
|