Here's a sample code that merges multiple PDFs into a single PDF file by appending pages from each PDF file to the output file:
main.cs880 chars32 lines
Note that each input PDF is first opened as a PdfDocument instance using PdfReader.Open and then its pages are appended to the PdfDocument instance of the output PDF file using outputPdf.AddPage. Finally, the output PDF file is saved using outputPdf.Save.
gistlibby LogSnag