Hello All,
I am getting error 'PDF Header Signature Not Found' when i merge to multiple PDF File.
code is below
public string MergePdf(List<byte[]> sourceData)
{
string sMergedPDF;
sMergedPDF = Guid.NewGuid().ToString().Replace("-", "_") + ".pdf";
string sMergedPdfWithFolderName = System.Web.HttpContext.Current.Server.MapPath("~/TemplateTemporaryFile/") + sMergedPDF;
try
{
int f = 0;
PdfReader reader = new PdfReader(sourceData[f]);
int n = reader.NumberOfPages;
Document document = new Document(reader.GetPageSizeWithRotation(1));
// step 2: we create a writer that listens to the document
PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(sMergedPdfWithFolderName, FileMode.Create));
// step 3: we open the document
docu ...
Go to the complete details ...