Skip to content

Append PDF in one File

neel

Asked Aug 11, 2014, 3:53 AM EDT4 answers
Share
LinkedInX
Hello Friends,
         I want to know how to append pdf to existing pdf file?... e.g. I have a pdf with single page and after  generation of reports from CR i want it to merge with the existing one. please guide me thru this.

4 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    are you generating pdf from your code or do you've two pdf files which you want to merge via c#

    What is CR?
    0
  • 0
    Hello  Sumit here CR is crystal report. and I'm generating pdf from crystal report one by one and want to merge it in a single file...like this.
    0
  • 0
    can you generate CR with all respected pages and pdf added in it already. So you can e.g., take snapshot of PDF and add as Image in CR report. Now this consolidated CR can be populated with MERGE button? This CR will not be visible until someone click at MERGE button. It's a trick , let me know if this resonate with you.
    0
  • 0
    If you want to merge the already-generated report PDF files by code, you can use a dedicated PDF library to do the merging programmatically. For example, Lead Tools allows you to do it using 2 lines of code like this:

    Leadtools.Pdf.PDFFile firstFile = new Leadtools.Pdf.PDFFile("1.pdf");
    // Merge it with the second, third and forth files
    firstFile.MergeWith(new string[] { "2.pdf", "3.pdf", "4.pdf" }, "Output.pdf");
    0